714 Commits

Author SHA1 Message Date
Jonas Platte
4e2b93617a
events-macros: Fix confusing variable name 2021-10-02 13:48:23 +02:00
Jonas Platte
c7284d972b
events-macros: Explain redaction special case 2021-10-02 13:48:23 +02:00
Jonas Platte
c807f9f43d
events: Add redacted redaction event types 2021-10-02 13:48:22 +02:00
Jonas Platte
3ee4ac08fb
events: Fix a test case 2021-10-02 13:08:19 +02:00
Jonas Platte
e41abbb56b
events: Implement Redact for event structs
… it was only implemented for the enums before.
2021-10-02 01:19:36 +02:00
Jonas Platte
3b786d8f78
events-macros: Simplify redaction-related code 2021-10-02 00:47:19 +02:00
Jonas Platte
ec92349496
events-macros: Add missing automatically_derived attribute 2021-10-01 20:17:47 +02:00
Jonas Platte
2536fdbe54
events-macros: Get rid of duplicate helper functions 2021-10-01 20:16:23 +02:00
Jonas Platte
d77f58dc46
events-macros: Fix proc-macro entrypoint name 2021-10-01 20:14:02 +02:00
Jonas Platte
651741f482
events-macros: Fix unqualified usage of From 2021-10-01 20:12:49 +02:00
Jonas Platte
8df746d442
events-macros: Simplify conversion code generation 2021-10-01 20:05:32 +02:00
Jonas Platte
ab6a364e42
events: Use type aliases inside enums 2021-10-01 19:49:25 +02:00
Jonas Platte
eff770d1d6
events: Generate initial event type aliases 2021-10-01 19:37:52 +02:00
Jonas Platte
678d3cd4ee
events: Small documentation improvements 2021-10-01 19:37:52 +02:00
Jonas Platte
802c83f38b
events: Fix redacted event type aliases 2021-10-01 18:41:11 +02:00
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
6b575ca0a2
events: Fix missing space in docs 2021-10-01 14:26:17 +02:00
Jonas Platte
de2b415020
state-res: Silence buggy clippy lint 2021-09-30 21:49:39 +02:00
Jonas Platte
a887dd7387
api-macros: Replace if-then-panic with assert 2021-09-30 20:14:09 +02:00
Jonas Platte
bb581e9252
events: Generate more event type aliases 2021-09-30 20:11:32 +02:00
Jonas Platte
120f1f3b2a
events: Generate event type aliases 2021-09-30 00:47:13 +02:00
Jonas Platte
f0dff1c29a
events: Link to main content struct from redacted content struct docs 2021-09-29 00:30:39 +02:00
Amanda Graven
3b5f3cb5a6
events: Move JoinRulesEventContent.allow into JoinRules 2021-09-28 13:39:58 +00:00
Jonas Platte
c6144c2299
state-res: Fix state-res tests
Before, they wouldn't compile with the unstable-exhaustive-types feature
active on ruma-state-res, but not on ruma-events.
2021-09-28 14:27:42 +02:00
Jonas Platte
00ae571636
serde: Add missing period in docs 2021-09-28 14:22:17 +02:00
Johannes Becker
e2386b7b64 client-api: Add custom variant to LoginInfo 2021-09-28 11:23:11 +02:00
Jonas Platte
1e48e97cf5
serde: Fix docs for JsonObject 2021-09-27 19:57:06 +02:00
Jonas Platte
031dedebc9
client-api: Fix small mistakes in IncomingAuthData::new docs 2021-09-27 19:51:10 +02:00
Jonas Platte
d92e7b4ca7
client-api: Remove no-op attribute 2021-09-27 19:49:47 +02:00
Jonas Platte
b4eac98acc
events: Make OlmV1Keys::ed25519 public
It was never meant to be private.
2021-09-27 19:23:18 +02:00
Johannes Becker
224d8a18e8
client-api: Add IncomingAuthData::new and IncomingAuthData::to_outgoing 2021-09-27 16:57:34 +00:00
Jonas Platte
5d36a97b59
client-api: Make fields of doc(hidden) structs private 2021-09-27 13:30:17 +02:00
Jonas Platte
8f88386125
client-api: Add data accessor to [Incoming]AuthData 2021-09-27 13:26:56 +02:00
Jonas Platte
6353e06bd5
client-api: make ThirdpartyIdCredentials an owned type 2021-09-27 13:25:16 +02:00
Jonas Platte
27a3e70465
events: Don't return body as part of MessageType::data 2021-09-27 13:01:50 +02:00
Jonas Platte
af250cf108
Merge JsonObject type aliases 2021-09-27 12:55:31 +02:00
Jonas Platte
fde518ea89
events: Adjust docs for MessageType::data 2021-09-27 12:52:47 +02:00
gnieto
cd4344115d
federation-api: Make device name field in DeviceListUpdateContent optional
According to the spec, `device_display_name` should be absent if the
device does not have any display name. This also changes the  `DeviceListUpdateContent`
constructor and it initializes this field with a None.
2021-09-26 11:27:12 +02:00
Jonas Platte
7cbffe35da
identifiers: Add matrix.to URL formatting 2021-09-23 21:12:57 +02:00
Jonas Platte
8b44f279c8
Use server_name! macro in tests 2021-09-23 20:33:45 +02:00
Jonas Platte
fe5d31a9a6
identifiers: Improve readability of one more method 2021-09-23 20:33:28 +02:00
Jonas Platte
e147308277
identifiers: Improve readability of server_name methods 2021-09-23 18:54:03 +02:00
Jonas Platte
27a2e1f97f
identifiers: Merge more impl blocks 2021-09-23 18:50:09 +02:00
Jonas Platte
79cbce00cc
client-api: Update change log 2021-09-23 18:20:51 +02:00
Niklas Kunz
efd5ad52fa
client-api: Add the reason field for remaining endpoints (MSC2367) 2021-09-23 16:18:49 +00:00
Jonas Platte
a7be60d9eb
client-api: Use an enum for user-interactive auth stage type 2021-09-23 18:04:30 +02:00
Jonas Platte
36462694e6
client-api: Fix a spec link 2021-09-23 17:55:50 +02:00
Callum Brown
898ec65e77
client-api: Add registration token UIAA type (from MSC3231) 2021-09-22 12:18:03 +00:00
Jonas Platte
a2254562b9
identifiers: Rewrap doc comment 2021-09-22 13:40:34 +02:00