Jonas Platte
e9d55cbfac
Reduce macro duplication
2019-11-11 23:37:24 +01: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
Jimmy Cuadra
090a91f78b
Add new macros for implementing event traits. Fix Serialize impl for
...
NameEventContent. Convert m.room.power_levels to the new API.
2019-07-19 14:44:16 -07:00
Jimmy Cuadra
4be050b19a
Convert m.tag and m.typing to the new API.
2019-07-19 14:35:21 -07:00
Jimmy Cuadra
ce2a3817cf
Rename ParseError to FromStrError and add InvalidEvent.
2019-06-19 22:45:20 -07:00
Jimmy Cuadra
c3f48c5be3
Use js_int types for numbers.
...
Closes #27 .
2019-06-16 16:16:37 -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
9f43f37f41
Clarify the units of origin_server_ts.
2019-06-12 13:31:45 -07:00
Jonas Platte
1b2cd339cb
Update to Rust 2018
2019-01-16 00:13:10 +01:00
Victor Berger
e9fc9b03fd
Make room_id optional
...
This field can be absent in some contextes, notably in the responses
to the /sync endpoint, where the events are summarised in the initial
sync of a client.
Fixes #19
2019-01-08 18:27:33 +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
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
1e1079a904
Extract enum serialization into a macro.
2016-07-30 11:50:58 -07:00