2505 Commits

Author SHA1 Message Date
Jonas Platte
01f20b17c0
events: Make remaining types in room::message non-exhaustive 2021-05-16 22:36:06 +02:00
Jonas Platte
7626135faf
events: Make fields of doc(hidden) struct private 2021-05-16 22:34:24 +02:00
Jonas Platte
61a033db58
Improve documentation 2021-05-16 22:07:00 +02:00
Jonas Platte
305b527ae9
Release ruma-identifiers 0.19.1 2021-05-16 21:54:03 +02:00
Jonas Platte
4c7ca120be
identifiers: Bump dependencies 2021-05-16 21:53:19 +02:00
Jonas Platte
2ada8690f8
events: Make FileMessageEventContent non-exhaustive 2021-05-16 00:14:23 +02:00
Jonas Platte
f77b49d4b8
events: Make more types non-exhaustive in room::message 2021-05-15 22:20:48 +02:00
Jonas Platte
da6b513788
state-res: Fix test utils
Was broken by recent exhaustiveness change.
2021-05-15 21:43:42 +02:00
Jonas Platte
2397d494b5
serde: Fix url_deserialize test 2021-05-15 19:29:41 +02:00
Jonas Platte
566e03abc1
Release ruma-serde 0.4.0 2021-05-15 19:26:09 +02:00
Jonas Platte
3ec830271c
serde: Update change log 2021-05-15 18:48:53 +02:00
Jonas Platte
f0e3a39706
serde: Relax bounds on Raw::deserialize_as 2021-05-15 18:47:34 +02:00
Jonas Platte
1562cd1d3a
serde: Remove time module 2021-05-15 18:45:30 +02:00
Jonas Platte
54cf81e9ab
events: Make room::member types non-exhaustive 2021-05-15 18:42:14 +02:00
Jonas Platte
9e9696f091
Re-run cargo fmt 2021-05-15 15:41:23 +02:00
Jonas Platte
67deaeb0fc
events: Improve RawExt documentation 2021-05-15 15:27:42 +02:00
Jonas Platte
89b169faf3
events: Fix redacted tests 2021-05-15 15:20:17 +02:00
Jonas Platte
ed9138796a
events: Refactor marker trait code generation 2021-05-15 15:18:22 +02:00
Jonas Platte
ab850d8237
events: Remove marker trait
It was not used anywhere.
2021-05-15 15:06:31 +02:00
Jonas Platte
37899db3c5
events: Borrow raw JSON in EventContent::from_parts 2021-05-15 15:02:27 +02:00
Jonas Platte
16e8f498b4
serde: Add Raw::deserialize_as 2021-05-15 15:02:03 +02:00
Jonas Platte
60d4ea027f
Use serde_json::Result alias 2021-05-15 15:02:02 +02:00
Jonas Platte
4edaf5a638
serde: Tiny docs improvement 2021-05-15 14:58:41 +02:00
Jonas Platte
9b38538579
events: Simplify RawExt
* Remove redundant where clause
* Clean up documentation
2021-05-15 14:58:41 +02:00
Devin Ragotzy
34134267c6
events: Generate redact method for content enums
… and remove redacted content structs non-room events
2021-05-15 12:51:20 +00:00
Jonas Platte
4aec2d5ff0
events: Introduce AnyRedacted[Sync]RoomEvent
… and use it to implement Redact for Any[Sync]RoomEvent.
2021-05-15 13:55:57 +02:00
Jonas Platte
32ba85b9a2
events: Simplify re-exports 2021-05-15 13:55:19 +02:00
Jonas Platte
702b619417
events: Introduce Redact trait 2021-05-15 13:26:05 +02:00
Jonas Platte
c07c3fa6d5
events: Introduce RedactContent trait 2021-05-15 13:23:20 +02:00
Jonas Platte
18005244c9
events: Merge RedactedSyncUnsigned and RedactedUnsigned 2021-05-15 13:12:13 +02:00
Jonas Platte
824a6db048
events-macros: Fix another missing type qualification 2021-05-15 12:27:25 +02:00
Jonas Platte
7403bdf1c8
events: Add redact method to Any[Sync]RoomEvent 2021-05-15 02:33:15 +02:00
Jonas Platte
2914c0b6a0
events: Add AnySyncRoomEvent::into_full_event 2021-05-15 02:27:03 +02:00
Jonas Platte
6db34b8ae4
events: Add accessor methods to AnyRoomEvent, AnySyncRoomEvent 2021-05-15 02:25:35 +02:00
Devin Ragotzy
d1f5fb1d87
events: Declare all event enums inside one macro invocation 2021-05-14 23:52:34 +00:00
Jonas Platte
a4811663de
events-macros: Fix missing type qualification 2021-05-15 00:58:18 +02:00
Jonas Platte
073b699660
api-macros: Fix tiny formatting inconsistency 2021-05-14 23:12:56 +02:00
Jonas Platte
b4aa66d68f
client: Fix broken intra-doc links 2021-05-14 14:36:29 +02:00
Jonas Platte
c2957df174
client: Fix borken doc(cfg) attribute 2021-05-14 14:35:05 +02:00
Jonathan de Jong
b616ba8233
Add reasons for each doctest ignore 2021-05-14 13:44:49 +02:00
Devin Ragotzy
058d2bfa24 Add kind = ToDevice for all to device content 2021-05-14 12:25:30 +02:00
Devin Ragotzy
b6558c64a0 Add global and room account content traits and to device trait 2021-05-14 12:25:30 +02:00
Devin Ragotzy
8252a1a32c Move all content declarations to content trait attribute 2021-05-14 12:25:30 +02:00
Devin Ragotzy
c7c1251f3f Specify content traits in attribute, remove derives 2021-05-14 12:25:30 +02:00
Jonas Platte
6c167fca38
state-res: Get rid of static mut 2021-05-14 01:40:23 +02:00
Jonas Platte
fe68bf0e07
Clean up json! formatting 2021-05-14 01:13:42 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Jonas Platte
c34d570fff
common: Introduce SecondsSinceUnixEpoch, MilliSecondsSinceUnixEpoch 2021-05-13 01:06:04 +02:00
Damir Jelić
3bdead1cf2 client-api: Allow the DeviceId to turn into a DeviceIdOrAllDevices 2021-05-12 17:07:47 +02:00
Damir Jelić
d971b668ec events: Add the to-device variant of the m.key.verification.done event 2021-05-12 17:07:47 +02:00