16 Commits

Author SHA1 Message Date
Jonas Platte
edbd5a696c
events: Use inline code blocks instead of emphasis for type strings 2021-10-01 18:35:01 +02:00
Jonas Platte
0101e110f8
Rename *ToDeviceEventContent structs to ToDevice*Content 2021-10-01 16:48:45 +02:00
Jonas Platte
120f1f3b2a
events: Generate event type aliases 2021-09-30 00:47:13 +02:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments 2021-08-27 21:32:02 +02:00
Jonas Platte
64fc1c794c
Revert "Stop special-casing zero fields in macro code" for ruma-events
This partially reverts commit 9b2602649f9e0fcb875404fc86d9c6fdbedd287d.
2021-07-26 15:01:47 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code 2021-07-09 15:10:22 +02:00
Devin Ragotzy
e05aad184e events: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +02:00
Jonas Platte
676548a2fe
events: Fix lints 2021-05-17 17:10:21 +02:00
Jonas Platte
aa31418961
events: Implement (de)serialization manually for dummy event content
The derived implementations use `null` as the serialized form of unit structs.
2021-05-17 16:58:37 +02:00
Jonas Platte
d03a7363e6
events: Update definition of DummyToDeviceEventContent
Make it a unit struct instead of a struct struct without fields.
2021-05-16 23:23:19 +02:00
Devin Ragotzy
058d2bfa24 Add kind = ToDevice for all to device content 2021-05-14 12:25:30 +02:00
Kévin Commaille
7fd350d6c6 events: Restore docs for DummyEvent and RoomKeyEvent 2021-05-12 16:02:44 +02:00
Kévin Commaille
0acb121ee5 events: Remove BasicEventContent trait and derive 2021-05-12 16:02:44 +02:00
Kévin Commaille
7faa59be6b events: Remove BasicToDevice enum 2021-05-12 16:02:44 +02:00
Kévin Commaille
8d8ca81e04 events: Split Basic enum into GlobalAccountData, RoomAccountData and BasicToDevice enums
Closes #563
2021-05-12 16:02:44 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00