15 Commits

Author SHA1 Message Date
Kévin Commaille
1aa2eadd70 client-api: Remove RuleScope
The `global` scope is hardcoded due to a clarification in the spec.
2024-10-19 14:58:59 -04:00
Kévin Commaille
02f29d6114 client-api: Make conversion from PushRule to ConditionalPushRule infallible 2023-11-15 15:10:42 +01:00
Kévin Commaille
44daf84e46 client-api: Allow to convert AnyPushRule(Ref) to PushRule 2023-03-02 11:30:48 +01:00
Jonas Platte
b859d9c8b0
common: Derive Debug via StringEnum derive 2023-01-13 13:49:59 +01:00
Kévin Commaille
e8bec10c6d push: Make SimplePushRule generic over the type of the rule_id 2022-11-12 10:59:52 +01:00
Kévin Commaille
f31530e02c client-api: Use an enum for the scope of the push rule endpoints 2022-11-09 14:45:12 +01:00
Kévin Commaille
cb122e755c push: Move RuleKind to ruma-common 2022-11-09 14:45:12 +01:00
Kévin Commaille
2bd5c131f4 client-api: Make PusherKind contain the pusher data
Since it depends on the kind
2022-11-07 10:21:48 +01:00
Kévin Commaille
801d9bf212 client-api: Use an enum to differentiate when deleting a pusher 2022-11-07 10:21:48 +01:00
Kévin Commaille
240c8bc4b8 macros: Derive as_str() for types that derive StringEnum 2022-05-30 17:17:06 +02:00
Kévin Commaille
4d89c7cc08 doc: Use markdown doc for types deriving StringEnum 2022-05-30 17:17:06 +02:00
Jonas Platte
5f902851af
Upgrade to Rust 2021 2022-05-27 12:04:23 +02:00
Kévin Commaille
688d5bf47a
docs: Improve string enums documentation
Mention the conversion from string.
2022-04-10 14:48:09 +02:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common 2022-03-10 12:11:00 +01:00
Jonathan de Jong
4787bab6ac
client-api: Transition from r0 to versioned endpoints 2022-02-18 11:03:55 +01:00