Ragotzy.devin
2a91dc1eb7
Remove event_enum! and only use event_content_enum
2020-06-10 20:51:41 +02:00
Ragotzy.devin
92a2dfa2e8
Uncomment all event enum variants, convert remaining ruma_event!
usages
2020-06-10 13:10:50 +02:00
Devin R
aea827a199
Make event_enum! error message more helpful
2020-06-10 12:35:40 +02:00
Devin R
86ca6bb39d
Add trybuild tests for event_enum! macro
2020-06-10 12:35:40 +02:00
Jonas Platte
36d7ee2676
Add EphemeralRoomEventStub
2020-06-10 10:29:00 +02:00
Jonas Platte
10ad9760d6
Extend MembershipChange::ProfileChanged
2020-06-10 09:43:14 +02:00
Jonas Platte
b33e57c589
Remove support for room events from ruma_event!
2020-06-10 00:24:17 +02:00
Jonas Platte
a7a16ccfcc
Delete old tests
2020-06-10 00:20:01 +02:00
Jonas Platte
47a4dc51c6
Add TagEvent type alias
2020-06-10 00:19:33 +02:00
Jonas Platte
7491b33e81
Add MemberEvent type alias
2020-06-09 23:38:14 +02:00
Ragotzy.devin
c2b1c9897b
Any event enum macro implementation (also generates event content enums)
2020-06-09 23:31:31 +02:00
Jonas Platte
b0d775a535
Restore unsigned.redacted_because
2020-06-09 17:02:08 +02:00
Jonas Platte
9478050792
Remove stripped module
2020-06-09 17:01:08 +02:00
Jonas Platte
a317ae6340
Add and re-export remaining event kinds
2020-06-09 16:58:58 +02:00
Jonas Platte
49e4d35db7
Adopt matrix-doc iv description clarification
...
See https://github.com/matrix-org/matrix-doc/pull/2492
2020-06-09 14:08:49 +02:00
Ragotzy.devin
1fdf986bae
Add RedactionEvent and convert RedactionEventContent to struct def
...
PresenceEventContent and RedactionEventContent now also derive *EventContent
2020-06-09 12:43:21 +02:00
Jonas Platte
647130c0fb
Clean up lib.rs
2020-06-09 02:24:06 +02:00
Jonas Platte
d377df88b8
Add content_enums::AnyToDeviceEventContent
...
… and remove the now outdated to_device module
2020-06-09 02:22:21 +02:00
Jonas Platte
abdc7ff2f7
Convert m.key.verification.start ot the new API
2020-06-09 02:13:07 +02:00
Jonas Platte
beabaec03e
Update AnyMessageEventContent
2020-06-09 02:05:36 +02:00
Jonas Platte
886320cbf4
Remove event_enums.rs, event enums will be generated
2020-06-09 02:03:00 +02:00
Jonas Platte
1373d4daaf
Rename ephemeral_event to ephemeral_room_event
2020-06-09 01:56:20 +02:00
Jonas Platte
924ff5096b
Bring back direct, dummy, push_rules
2020-06-09 01:54:58 +02:00
Jonas Platte
63a2e5e4eb
Fix tests
2020-06-09 01:53:24 +02:00
Jonas Platte
1e365c6a2d
Re-introduce dedicated event types as type alises
2020-06-09 01:40:52 +02:00
Jonas Platte
d4a196f682
Update ReceiptEventContent representation
...
… and implement Deref, DerefMut for it
2020-06-09 01:33:40 +02:00
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
8c271fb835
Add event_enums.rs
...
only contains AnyStateEvent for now, more will be added
2020-06-07 20:18:07 +02:00
Jonas Platte
d3b17e2b5b
Fix a typo
2020-06-07 20:08:50 +02:00
Jonas Platte
dd89b24aa4
Update custom module
2020-06-07 17:50:47 +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
Jonas Platte
aa7a54015c
Rename ruma_content_collection to ruma_content_enum
2020-06-07 15:54:23 +02:00
Jonas Platte
f531dce754
Externalize generic event struct tests
2020-06-07 15:48:44 +02:00
Jonas Platte
b3f024bf13
Update list of events in AnyStateEventContent
2020-06-07 01:18:42 +02:00
Ragotzy.devin
0a91ac5126
Remove raw mod and TryFromRaw/FromRaw, derive Deserialize for event content types
2020-06-07 01:18:42 +02:00
Ragotzy.devin
2c8d609095
Add Event derive macro
2020-06-07 01:18:42 +02:00
Jonas Platte
6a844625fc
Clean up macro crate attributes
2020-06-07 01:18:42 +02:00
Jonas Platte
76cd387506
Remove support for state events in ruma_event!
2020-06-07 01:18:42 +02:00
Jonas Platte
b95b7db0d4
Convert remaining state structs from ruma_event! to derive(StateEventContent)
2020-06-07 01:18:42 +02:00
Jonas Platte
74f680f8ed
Add back all commented-out room events
2020-06-07 01:18:42 +02:00
Jonas Platte
7d303fff7e
Fix unsigned field not being serialized for MessageEvent, StateEvent
2020-06-07 01:18:41 +02:00
Jonas Platte
158287204b
Fix a typo
2020-06-07 01:18:41 +02:00
Jonas Platte
35eb0bcfbf
Re-export MessageEvent from the crate root
2020-06-07 01:18:41 +02:00
Ragotzy.devin
33ac5267a9
Implement MessageEvent and AnyMessageEventContent
2020-06-07 01:18:34 +02:00
Jonas Platte
24f720d1f1
Convert most message events from ruma_event! to derive(MessageEventContent)
...
* m.sticker
* m.call.answer
* m.call.candidates
* m.call.hangup
* m.call.invite
2020-06-07 01:11:15 +02:00