4057 Commits

Author SHA1 Message Date
Jonas Platte
2a2028f1a7
identifiers: Remove runtime checks for RoomOrAliasId conversions 2021-11-26 17:50:04 +01:00
Jonas Platte
4132c43cbb
identifiers: Remove runtime checks for server_name extraction 2021-11-26 17:43:02 +01:00
Jonas Platte
c3382f085c
identifiers: Make device_id! return a reference
Not necessarily 'static like the other macros but otherwise consistent.
2021-11-26 16:47:55 +01:00
Jonas Platte
8923881678
identifiers: Rename RoomIdOrAliasId to RoomOrAliasId 2021-11-26 01:07:41 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names 2021-11-26 01:07:26 +01:00
Jonas Platte
f03065793b
identifiers: Update changelog 2021-11-26 00:53:07 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
a81769c3fd
identifiers: Clean up internal macros 2021-11-26 00:40:44 +01:00
Jonas Platte
f448f6756e
identifiers: Derive PartialEq, Eq, PartialOrd, Ord, Hash for str newtypes
… instead of generating them in our own macro.
2021-11-26 00:40:44 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST 2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +01:00
Jonas Platte
313124a099
identifiers: Make RoomIdOrAliasId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
ec605a0959
identifiers: Make MxcUri a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
a38f78e2d3
identifiers: Move opaque identifier declarations out of macro 2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST 2021-11-25 22:34:40 +01:00
Jonas Platte
c73eb7dce3
identifiers: Make DeviceKeyId a DST 2021-11-25 21:07:14 +01:00
Jonas Platte
206c25e7e7
identifiers: Add more PartialEq implementations 2021-11-25 21:07:14 +01:00
Jonas Platte
ce947741cb
identifiers: Reduce macro code duplication 2021-11-25 21:07:14 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
c38084432f
identifiers: Borrow mxid in sign_invitation_ed25519 Request 2021-11-25 21:07:03 +01:00
Jonas Platte
e9c1425acd
client-api: Add missing reference to request parameter type 2021-11-24 21:36:24 +01:00
Jonas Platte
d54378eecf
Update recommended VSCode settings 2021-11-24 12:24:56 +01:00
Isaiah Inuwa
370d59a9bc client: Use constructor for non-exhaustive LoginInfo struct 2021-11-23 23:02:27 -06:00
Isaiah Inuwa
d988a77ac0 Fix CI to cross-check ruma-client and ruma-client-api 2021-11-23 23:02:27 -06:00
Jonas Platte
1e9f846722
events: Add accessor methods for RoomMessageEventContent 2021-11-23 10:50:14 +01:00
Jonas Platte
897146e369
events: Fix some docs being on wrong constructor 2021-11-19 10:49:11 +01:00
Jonas Platte
49e5d45ac9
events: Improve usability and docs of m.room.message reply constructors 2021-11-18 22:51:58 +01:00
Jonas Platte
24950b208e
events: Stop relying on UserId Debug format 2021-11-18 21:41:10 +01:00
Jonas Platte
824ef40bd9
events: Move message reply helper functions into a separate module 2021-11-18 20:20:43 +01:00
Jonas Platte
1a87403ba2
Rewrite some Display & Debug implementations
To delete in a more obvious way and to include debug formatting for
Debug impls (i.e. enclose the string in quotes).
2021-11-18 19:49:40 +01:00
Jonas Platte
3959ec4abb
events: Fix a typo 2021-11-18 19:32:02 +01:00
Jonas Platte
b7334edaf7
events: Update reply ctor argument types 2021-11-18 19:12:08 +01:00
Andy Balaam
b4226f882b
identifiers: Document how to create a DeviceId 2021-11-18 16:57:01 +01:00
Andy Balaam
d556cb819d
Add missing 'n' in README 2021-11-18 10:42:18 +00:00
Devin Ragotzy
7fbfe59091
state-res: Minor fixes & doc updates 2021-11-15 23:08:12 +01:00
Devin Ragotzy
44db63657f
state-res: Change most RoomVersion constructor functions to constants 2021-11-15 23:04:47 +01:00
Kévin Commaille
746e0a026d
client-api: Rename r0::uiaa::authorize_fallback to get_uiaa_fallback_page 2021-11-13 23:39:32 +01:00
Kévin Commaille
2d7b206fe5
client-api: Add AuthType for m.login.sso 2021-11-13 20:15:56 +01:00
Devin Ragotzy
bdce12b07e
state-res: Add some docs and fix a typo 2021-11-12 14:40:43 +01:00
Devin Ragotzy
0e1cf5b3f6
state-res: Add info for room version 7, 8, and 9 2021-11-12 14:40:26 +01:00
Niklas Dusenlund
a100cf9728
client-api: Align endpoint name with module name 2021-11-11 00:44:02 +01:00
Jonas Platte
6d244cd236
federation-api: Add note about minimum_valid_until_ts field type 2021-11-09 22:12:23 +01:00
gnieto
b60df453dc
federation-api: Remove unneeded parameter on get_remote_server_keys_batch
The `minimum_valid_until_ts` parameter is not needed on this endpoint
(https://matrix.org/docs/spec/server_server/r0.1.4#post-matrix-key-v2-query).
2021-11-09 22:09:48 +01:00
Callum Brown
975efcd2ee
client-api: Add registration token validity checking endpoint 2021-11-09 12:30:30 +00:00
Jonas Platte
a9ecd7f397
client-api: Break up the ill-named contacts module 2021-11-09 11:41:21 +01:00
Jonas Platte
ac6ecc3e5e
push-gateway-api: Make data field of Device not an Option
All fields of the inner type are optional themselves.
2021-11-05 12:57:26 +01:00
Jonas Platte
103b9df6c2
common: Add unstable support for default_payload field in PusherData 2021-11-05 12:49:43 +01:00
Jonas Platte
8de8ad9f5b
Change link from http to https in README.md 2021-11-04 12:50:26 +01:00