Jonas Platte
|
2480bb292a
|
Replace HashMap with BTreeMap
|
2020-04-19 17:46:36 +02:00 |
|
Jonas Platte
|
dc0a9f88ba
|
Change timestamp types from UInt to SystemTime
|
2020-04-17 22:43:30 +02:00 |
|
PipsqueakH
|
a9e1a2b0b0
|
Replace all remaining manual implementations by derives
|
2020-04-05 19:37:04 +02:00 |
|
Akshay
|
8915339e56
|
Rewrite tests to use serde_json::json! instead of raw strings
|
2020-03-31 16:07:09 +02:00 |
|
Jonas Platte
|
cba7b161e9
|
Update unsigned field's type from Option<Value> to Map<String, Value>
* it's guaranteed to always be an object
* `Option` isn't needed because the distinction empty object / missing
field is not of interest
|
2020-03-29 15:37:57 +02:00 |
|
Will Hakes
|
fc2d646dd3
|
Add new_plain constructor for TextMessageEventContent
|
2020-03-16 12:48:50 -06:00 |
|
Marcel
|
c81cc48aeb
|
Fix missing "m." in serialization of the "m.relates_to" key
|
2020-02-28 11:38:44 +01:00 |
|
Jonas Platte
|
2f95a299b7
|
Fix typo
|
2020-02-10 15:54:41 +01:00 |
|
Jonas Platte
|
60c817e1b0
|
Restore Rust 1.34.2 compatibility
|
2019-10-23 02:09:34 +02:00 |
|
Jonas Platte
|
63b85f524c
|
Get rid of redundant clone()s (thanks to clippy)
|
2019-10-18 23:48:48 +02:00 |
|
Jonas Platte
|
09b8de5b6e
|
Introduce FromRaw in addition to TryFromRaw
|
2019-10-15 20:26:30 +02:00 |
|
Jonas Platte
|
a6c34596d7
|
Rename EventResultCompatible to TryFromRaw
|
2019-10-15 20:05:46 +02:00 |
|
Jonas Platte
|
c20d79db7d
|
Inline try_from method into EventResultCompatible
|
2019-10-08 21:28:18 +02:00 |
|
Jonas Platte
|
05562a48a3
|
WIP
|
2019-09-29 13:30:51 +02:00 |
|
Jonas Platte
|
297bae4cbb
|
Remove FromStr, TryFrom<&'_ str> implementations
|
2019-09-29 10:56:15 +02:00 |
|
Jimmy Cuadra
|
bd64b7f4be
|
impl Deserialize for m.room.message
|
2019-08-06 15:02:05 -07:00 |
|
Jimmy Cuadra
|
de23971ee4
|
Deny and address all warnings.
|
2019-07-19 15:47:14 -07:00 |
|
Jimmy Cuadra
|
b003699048
|
Remove unnecessary crate:: prefixes.
|
2019-07-19 14:59:45 -07:00 |
|
Jimmy Cuadra
|
0f55729478
|
Handle both deserialization and validation errors in FromStr impls.
|
2019-07-19 14:54:31 -07:00 |
|
Jimmy Cuadra
|
3e58ad7a8f
|
Convert m.room.message to the new API.
|
2019-07-19 14:52:49 -07:00 |
|
Jimmy Cuadra
|
c3f48c5be3
|
Use js_int types for numbers.
Closes #27.
|
2019-06-16 16:16:37 -07:00 |
|
Jimmy Cuadra
|
9b17d5729a
|
Use a consistent style for the name of the library.
|
2019-06-15 00:07:44 -07:00 |
|
Jimmy Cuadra
|
12212789b3
|
Future-proof enums with a __Nonexhaustive variant.
This can be replaced with the #[non_exhaustive] compiler attribute once
it's stabilized.
|
2019-06-14 18:18:47 -07:00 |
|
Jimmy Cuadra
|
add7ef0d8b
|
Add blank lines to make type definitions easier to read.
|
2019-06-14 14:02:03 -07:00 |
|
Jimmy Cuadra
|
dd2e0afd47
|
All fields on FileInfo, ImageInfo, and ThumbnailInfo are optional.
|
2019-06-13 17:32:09 -07:00 |
|
Jimmy Cuadra
|
4661547e21
|
Add the m.server_notice* message type.
|
2019-06-13 01:50:13 -07:00 |
|
Jimmy Cuadra
|
ba2538dda9
|
Update existing events for spec r0.5.0 and add m.fully_read and
m.room.message.feedback.
|
2019-06-12 16:20:10 -07:00 |
|
Jonas Platte
|
7f18e1c32e
|
Replace serde_derive by re-exports in serde
|
2019-02-06 20:12:30 +01:00 |
|
Jonas Platte
|
1b2cd339cb
|
Update to Rust 2018
|
2019-01-16 00:13:10 +01:00 |
|
Jonas Platte
|
6f093f70ed
|
Use nested imports, misc. import changes
* Bring imports into a consistent order (std, crates, internal)
* Replace super::super-imports by crate-relative ones
|
2019-01-16 00:13:10 +01:00 |
|
Jimmy Cuadra
|
3acc5c3a93
|
Run rustfmt.
|
2018-05-18 23:54:13 -07:00 |
|
Konstantinos Sideris
|
a9490dbee8
|
Update matrix events to their latest version
|
2017-11-16 11:22:07 +02:00 |
|
Jonas Platte
|
b741ec3028
|
Use more descriptive names for properties with one-character-names in the spec
|
2017-08-04 10:35:56 +02:00 |
|
Jonas Platte
|
b852b15134
|
Fix grammar in doc comments
|
2017-08-03 22:16:52 +02:00 |
|
Jimmy Cuadra
|
edefffe220
|
Replace try macro with question mark.
|
2017-04-21 04:05:30 -07:00 |
|
Jimmy Cuadra
|
dee5cc91bc
|
Update serde to 1.0.
|
2017-04-21 03:53:11 -07:00 |
|
Jimmy Cuadra
|
f01b722ae2
|
Update serde to 0.9.
|
2017-01-26 01:23:38 -08:00 |
|
Jimmy Cuadra
|
f57a1aec48
|
Derive Clone for basically everything. Close #3."
|
2016-10-16 16:20:25 -07:00 |
|
Jimmy Cuadra
|
8392852741
|
Convert Event, RoomEvent and StateEvent into traits.
|
2016-10-02 03:46:16 -07:00 |
|
Jimmy Cuadra
|
f3acdfd141
|
Reintroduce macro for enum Display and FromStr impls.
|
2016-10-01 04:25:45 -07:00 |
|
Jimmy Cuadra
|
2eb07f5abd
|
Use Serde annotations instead of manual implementation for enums.
|
2016-08-03 23:43:08 -07:00 |
|
Jimmy Cuadra
|
85578cf76f
|
Implement Serialize and Deserialize for MessageEventContent.
|
2016-08-03 04:01:13 -07:00 |
|
Jimmy Cuadra
|
f35f2015eb
|
Skip serializing option values that are none.
|
2016-08-03 03:47:03 -07:00 |
|
Jimmy Cuadra
|
ca4c8a6784
|
Remove derived impls for Serialize and Deserialize for MessageType.
|
2016-07-30 12:04:22 -07:00 |
|
Jimmy Cuadra
|
cff81e625b
|
Implement Serialize and Deserialize for MessageType.
|
2016-07-30 11:56:44 -07:00 |
|
Jimmy Cuadra
|
070a6fe633
|
Add second generic parameter to events and add missing docs.
|
2016-07-02 03:33:10 -07:00 |
|
Jimmy Cuadra
|
68265a9387
|
Revert the package name to ruma-events.
|
2016-06-21 21:29:43 -07:00 |
|
Jimmy Cuadra
|
dd1a3979e6
|
Rename package to ruma-common and namespace event types.
|
2016-06-20 22:47:51 -07:00 |
|
Jimmy Cuadra
|
4043de42ee
|
Add m.room.message types.
|
2016-06-04 04:01:42 -07:00 |
|
Jimmy Cuadra
|
787f4d0af2
|
Move each event into its own module.
|
2015-11-29 23:38:23 -08:00 |
|