44 Commits

Author SHA1 Message Date
Jonas Platte
6c806052f5
Move custom events, Empty struct into their own modules 2020-04-27 20:45:58 +02:00
Jonas Platte
9d7ff18463
Remove collections::only::raw export 2020-02-21 12:18:21 +01:00
Jonas Platte
ac26770319
Add collection conversion functions 2020-02-18 23:53:54 +01:00
Jonas Platte
cf5fccaccc
Simplify TryFromRaw::try_from_raw 2019-11-24 17:40:13 +01:00
Jonas Platte
e9d55cbfac
Reduce macro duplication 2019-11-11 23:37:24 +01:00
Jonas Platte
a9840164cd
Derive Serialize for collection types 2019-11-11 23:26:12 +01:00
Jonas Platte
9e50de0d13
Remove unused trait impls on raw collection types 2019-11-11 23:18:58 +01:00
Jonas Platte
63e32f2b01 Exhausively match EventType in collection deserilization code 2019-10-27 21:26:03 +01:00
Jonas Platte
3b78391fbc Implement custom event deserialization 2019-10-27 21:01:28 +01:00
Jonas Platte
cbe22a84eb Remove commented-out code 2019-10-27 20:56:32 +01:00
Jonas Platte
09378eb410 Refactor collection deserialization 2019-10-23 02:24:07 +02:00
Jonas Platte
60c817e1b0 Restore Rust 1.34.2 compatibility 2019-10-23 02:09:34 +02:00
Jonas Platte
7e5ca6e7af Simplify StrippedStateContent deserialization 2019-10-21 14:20:53 +02:00
Jonas Platte
982d978d94 Almost finish deserialize impl's 2019-10-16 21:40:30 +02:00
Jonas Platte
5ad549b3e4 Add part of the deserialization logic for collections/raw/* 2019-10-16 00:07:06 +02:00
Jonas Platte
1aaee389ec Add missing TryFromRaw implementations 2019-10-15 23:45:45 +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
de23971ee4 Deny and address all warnings. 2019-07-19 15:47:14 -07:00
Jimmy Cuadra
7eadc017a5 Convert collections modules to the new API. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
04cdc96b8b Add m.push_rules. 2019-06-15 03:26:50 -07:00
Jimmy Cuadra
a0ee826828 Add E2EE events to EventType and collections types. 2019-06-14 23:12:18 -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
668e8b2239 Add m.room.tombstone. 2019-06-13 01:34:05 -07:00
Jimmy Cuadra
9836222b73 Add m.room.server_acl. 2019-06-13 01:24:00 -07:00
Jimmy Cuadra
9ad9776033 Add m.sticker. 2019-06-13 00:59:14 -07:00
Jimmy Cuadra
0fdf51598f Add m.ignored_user_list. 2019-06-13 00:43:54 -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
Jimmy Cuadra
16347d7209 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:42:36 -07: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
3a62aaf4c7 Add m.room.pinned_events 2017-11-27 17:08:51 +02:00
Konstantinos Sideris
0635fbae53 Add m.direct event 2017-11-16 11:22:08 +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
Konstantinos Sideris
85504cd7a7 Derive Clone and Debug for collections 2016-12-13 03:32:22 +02:00
Jimmy Cuadra
56457e1bb4 Implement Deserialize and Serialize for collection types. 2016-12-09 18:28:39 -08:00
Jimmy Cuadra
c92ce9eeb1 Add types to support heterogeneous collections of events. 2016-12-08 18:10:19 -08:00