7 Commits

Author SHA1 Message Date
Jonas Platte
1f2c186ce1
Remove ToDeviceEventContent
… since any event can be sent using to-device messaging
2020-06-09 01:22:50 +02:00
Ragotzy.devin
6a0a10fcff
Add BasicEventContent derive and create AnyBasicEventContent enum
Also remove PresenceEventContent derive and expand code gen
2020-06-08 23:51:22 +02:00
Ragotzy.devin
d38e385aab
Remove unused imports and fix serde::ser::Error trait not being in scope 2020-06-08 14:40:59 +02:00
Ragotzy.devin
800fba7c32
Implement PresenceEvent and EphemeralEvent
* Add derive for PresenceEventContent and create struct AnyPresenceEventContent
since there is only one content type
* Add derive for Ephemeral event and create enum AnyEphemeralEventContent, convert
receipt and typing to use derive(EphemeralEventContent) over ruma_api!
2020-06-07 22:56:43 +02:00
Ragotzy.devin
ef3a6787a0
Remove src/from_raw.rs and ruma-events-macro/src/from_raw.rs 2020-06-07 22:21:04 +02:00
Jonas Platte
283370ff2f
Add more event kinds 2020-06-07 16:15:24 +02:00
Jonas Platte
315ac55d46
Replace state.rs, messages.rs by event_kinds.rs, content_enums.rs 2020-06-07 16:01:35 +02:00