1844 Commits

Author SHA1 Message Date
Jonas Platte
4238c91e24
Update MSRV policy 2020-07-22 23:05:50 +02:00
Jonas Platte
09f711b1c3
Fix unused import 2020-07-22 22:46:27 +02:00
Kinrany
9190bff1d0 Split AnyPushRuleConversionError in two and impl Error 2020-07-22 21:16:41 +02:00
Kinrany
580aaf4858 Add trailing comma 2020-07-22 21:16:41 +02:00
Kinrany
4570fa2fef Update AnyPushRule description 2020-07-22 21:16:41 +02:00
Kinrany
8eb96549d3 Implement From and TryFrom for AnyPushRule
Conversion into PushRule always succeeds, so no need to use TryFrom there
2020-07-22 21:16:41 +02:00
Kinrany
dca8e8c53e Move PushRule from ruma_client_api to ruma_common
Moves ruma_client_api::r0::PushRule to ruma_common::push::AnyPushRule
2020-07-22 21:16:41 +02:00
Devin R
3a0138dea1 Use Box instead of Raw for the redacted Unsigned types redacted_because 2020-07-22 20:29:01 +02:00
Jonas Platte
885aae39c5
Add From<&T> for Box<T> implementations for ServerName, DeviceId 2020-07-22 20:22:17 +02:00
Jonas Platte
4cbdc079b0
Improve string comparison impls 2020-07-22 19:17:24 +02:00
Jonas Platte
b24df92692
Make DeviceId a newtype rather than an alias 2020-07-22 18:59:33 +02:00
Jonas Platte
8d8e18afbc
Make RoomVersionId a non-exhaustive enum 2020-07-22 18:38:37 +02:00
Devin R
b55f82742c Fix sync ephemeral room events code-gen enum definition 2020-07-21 14:54:57 +02:00
Bernardo Yusti
c74b737fa5
Add logout_devices parameter to change_password::Request 2020-07-21 01:40:23 +02:00
Jonas Platte
c2ea1493cb
identifiers: Use .as_ref() less 2020-07-20 16:33:29 +02:00
Isaiah Inuwa
ade43c8516 Use ServerName everywhere 2020-07-18 07:50:53 -05:00
Isaiah Inuwa
b6045d16a4 Use DeviceId instead of String for login response. 2020-07-18 07:25:28 -05:00
Devin R
848b225681 Group/move functions around in the event_enums module 2020-07-17 14:20:17 +02:00
Devin R
cd2f011fb3 Add AnyPossiblyRedacted* enums to event_enum! code-gen 2020-07-17 14:20:17 +02:00
Jonas Platte
7aac2f5439
Mark HistoryVisibilityEventContent as non_exhaustive 2020-07-17 01:29:27 +02:00
Jonas Platte
1e17afbc52
fixup! Mark types in ruma_events::room::create as non_exhaustive 2020-07-17 01:28:03 +02:00
Jonas Platte
7bb6c66051
Mark GuestAccessEventContent as non_exhaustive 2020-07-17 01:21:59 +02:00
Jonas Platte
b31a6eac65
Mark EncryptionEventContent as non_exhaustive 2020-07-17 01:20:41 +02:00
Jonas Platte
34e89f4d11
Update EncryptionEventContent docs 2020-07-17 01:20:30 +02:00
Jonas Platte
6644ae487f
Mark types in ruma_events::room::encrypted as non_exhaustive 2020-07-17 01:07:16 +02:00
Jonas Platte
d6dfed568f
Add documentation to RoomVersionId's PartialOrd, Ord impls 2020-07-17 01:07:16 +02:00
Jonas Platte
80ab6f0190
Mark types in ruma_events::room::create as non_exhaustive 2020-07-17 01:07:16 +02:00
Jonas Platte
c35af9c5ea
Mark FeedbackEventContent as non_exhaustive 2020-07-17 01:07:16 +02:00
Jonas Platte
a5514fd7ca
Update lint attributes for ruma-events 2020-07-17 01:07:16 +02:00
Jonas Platte
7216cbd5bd
Mark CanonicalAliasEventContent as non_exhaustive 2020-07-17 01:07:16 +02:00
Jonas Platte
c9c56c3404
Mark AvatarEventContent as non_exhaustive 2020-07-17 01:07:15 +02:00
Ragotzy.devin
1db0082281
Add redact method to all event_enum! generated enums
… and to AliasesEventContent
2020-07-17 01:07:07 +02:00
skim
b260a13d4b
move and rename ruma_events::json::EventJson to ruma_common::raw::Raw 2020-07-16 07:31:36 -07:00
Jonas Platte
f517099825
Mark m.room.aliases content as non_exhaustive 2020-07-16 02:48:11 +02:00
Ragotzy.devin
e7d9fb785d
Split UnsignedData into multiple types
* Rename UnsignedData -> Unsigned
* Add RedacedUnsigned and RedactedSyncUnsigned
2020-07-16 02:34:36 +02:00
Jonas Platte
9d94b59f7d
Fix formatting of ruma-federation-api/CHANGELOG.md 2020-07-16 02:16:39 +02:00
Devin R
101b8689a5 Add unstable-synapse-quirks feature for Sessions struct and fields 2020-07-15 19:17:03 -04:00
Devin R
254b24fb20 Add pre-spec fields to r0::keys::get_keys::Response 2020-07-15 19:14:57 -04:00
Devin R
605680530b Add ability to feature gate fields in ruma_api! macro 2020-07-15 19:14:04 -04:00
Devin R
6f69a6fe76
Fix redacted aliases event deserialization 2020-07-15 17:10:47 +02:00
Devin R
3f951e931b
Add redacted aliases deserialize test 2020-07-15 17:10:47 +02:00
Devin R
0bfb87fea0
Move UnsignedData creation into function for redacted tests 2020-07-15 17:10:47 +02:00
Ragotzy.devin
24b0068213
Add unstable backup and keys/upload_signing/signature endpoints
Co-authored-by: Timo Kosters <timo@koesters.xyz>
2020-07-15 15:53:35 +02:00
Jonas Platte
7cfec8631a
Use the matches! macro in more places 2020-07-15 15:51:09 +02:00
Jonas Platte
501652a272
Fix unused import warnings 2020-07-15 15:49:04 +02:00
Damir Jelić
b5b0ca267b
ruma-events: Update the constructor of the start event for the new key agreement. 2020-07-15 12:25:00 +02:00
Damir Jelić
9eb0266cb0
ruma-events: Test the key agreement serialization/deserialization. 2020-07-15 12:23:11 +02:00
Damir Jelić
02d7f8d17b
ruma-events: Expose the content fields of the verification start event publicly. 2020-07-15 12:23:10 +02:00
Damir Jelić
c93cfb986b
ruma-events: Add the new key agreement method. 2020-07-15 12:22:53 +02:00
Jonas Platte
ded60cc935
Use matches! instead of manual match -> bool 2020-07-15 12:21:32 +02:00