20 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
2bf17fd727
events: Further clean up tests 2021-09-19 19:10:52 +02:00
Jonas Platte
a81880c68f
events: Rework Relation serde
Relation types now implement `Deserialize`, `Serialize`.
2021-08-21 15:20:15 +02:00
Jonas Platte
6177bfccef
events: Add missing ctor / From impl for EncryptedToDeviceEventContent 2021-08-11 21:08:24 +02:00
Jonas Platte
b2b8265ded
events: Split EncryptedEventContent in two 2021-08-11 18:54:25 +02:00
Jonas Platte
7a61c9cd8c
Remove trait derives other than Debug from Init structs 2021-08-10 15:22:26 +02:00
Jonas Platte
6236b024fd
events: Fix new_content serialization in the plain-text part of m.encrypted 2021-07-26 13:52:49 +02:00
Jonas Platte
61671f4440
events: Add event relation conversions 2021-06-20 19:34:29 +02:00
Jonas Platte
84829e23dc
events: Remove shared Relation type in favor of more per-event-type ones 2021-06-20 19:27:12 +02:00
Jonas Platte
1c31d31be1
events: More consistent item ordering for room::encrypted 2021-06-20 18:38:06 +02:00
Jonas Platte
090948e04f
events: Consistently use relates_to for Relation field name 2021-06-20 01:32:29 +02:00
Devin Ragotzy
e05aad184e events: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +02:00
Jonas Platte
ec4b719546
events: Refactor message relations
* Discard unknown relations
* Move new_content into Relation::Replacement
2021-06-17 19:43:23 +02:00
Devin Ragotzy
8252a1a32c Move all content declarations to content trait attribute 2021-05-14 12:25:30 +02:00
Kévin Commaille
24154195a0
events: Construct EncryptedEventContent from EncryptedEventScheme 2021-05-07 09:53:35 +00:00
Kévin Commaille
db76c22180
events: Add constructor for EncryptedEventContent 2021-05-07 11:34:10 +02:00
Devin Ragotzy
5090c11843
Enable non-default clippy lints 2021-05-06 11:07:31 +00:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00