Jonas Platte
|
a8ba82d585
|
api: Make EndpointError construction infallible
Simplifies error matching and preserves more information for
non-spec-compliant server errors.
|
2022-11-10 13:10:57 +01:00 |
|
Jonas Platte
|
08dcf1e224
|
api: Add VersionHistory::{deprecated_in, removed_in}
|
2022-11-10 11:33:17 +01:00 |
|
Jonas Platte
|
866b01d0c2
|
api: Rename VersionHistory::added_version to added_in
… and reword its documentation.
|
2022-11-10 11:33:17 +01:00 |
|
Jonas Platte
|
848ca9b225
|
api: Rework VersionHistory path accessors
* Return iterators
* Rename all_unstable_paths to unstable_paths
* Rename all_versioned_stable_paths to stable_paths
|
2022-11-10 11:33:17 +01:00 |
|
Jonas Platte
|
3eb82950f2
|
Remove accidentally duplicated file
|
2022-11-01 12:39:55 +01:00 |
|
Jonas Platte
|
ec67fcbd6f
|
api: Use VersionHistory::new from ruma_api!
… and remove a now-redundant check from the macro code.
|
2022-10-28 10:38:52 +02:00 |
|
Jonathan de Jong
|
e783d77db7
|
api: Add VersionHistory const fn new
|
2022-10-26 18:00:46 +02:00 |
|
Jonas Platte
|
ec31badd84
|
api: Replace path fields in Metadata with new VersionHistory type
Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
|
2022-10-22 11:17:55 +02:00 |
|
Jonas Platte
|
451a50a77b
|
api: Add missing cfg for test
|
2022-10-22 11:12:52 +02:00 |
|
Jonas Platte
|
764e96a254
|
api: Enforce consistent path field order
|
2022-10-20 20:51:09 +02:00 |
|
Kévin Commaille
|
e6e7e52034
|
client-api: Send CORP headers by default for media responses
According to MSC3828.
|
2022-10-10 19:09:39 +02:00 |
|
Kévin Commaille
|
739c35aaca
|
api: Allow to use any HeaderName with the header keyword of ruma_api
|
2022-10-10 19:09:39 +02:00 |
|
Jonas Platte
|
715c226975
|
api: Make select_path and make_endpoint_url methods on Metadata
… and remove #[doc(hidden)] attribute.
|
2022-09-29 15:49:39 +02:00 |
|
Jonas Platte
|
8290d712f2
|
api: Move the majority of endpoint URL building out of macro code
|
2022-09-29 15:49:39 +02:00 |
|
Jonas Platte
|
914e5c21e9
|
events: Rename Any[Sync]RoomEvent to Any[Sync]TimelineEvent
|
2022-08-24 17:43:42 +02:00 |
|
Kévin Commaille
|
8e2c4b5cb7
|
api: Make Clone a supertrait of OutgoingRequest
Allow to retry a request.
|
2022-07-30 17:02:38 +02:00 |
|
Kévin Commaille
|
524eb90501
|
api: Make some test assertions more helpful
|
2022-06-14 10:54:18 +02:00 |
|
Kévin Commaille
|
066d8aee7f
|
api: Make some test assertions more helpful
|
2022-06-14 10:01:49 +02:00 |
|
Jonas Platte
|
8912182c56
|
Increase usage of implicit named arguments in format strings
|
2022-06-03 10:06:28 +02:00 |
|
Jonas Platte
|
b34bfaf1f6
|
Replace matches crate with assert_matches
|
2022-05-24 18:07:29 +02:00 |
|
Jonas Platte
|
efe48af207
|
Replace remaining uses of boxed IDs with dedicated owned ones
|
2022-04-20 10:39:36 +02:00 |
|
Jonas Platte
|
d855ec33d6
|
identifiers: Update ToOwned implementations to use new types
… and a lot of changes that cascaded from that.
|
2022-04-20 10:39:36 +02:00 |
|
Jonas Platte
|
ffd7625a17
|
api: Rename FromHttpResponseError::{Http => Server}
|
2022-03-22 13:26:38 +01:00 |
|
Jonas Platte
|
54f9db8ccc
|
macros: Consistently create Incoming* types from Incoming derive
… as a type alias if there are no lifetime generics on the input type.
|
2022-03-22 13:19:03 +01:00 |
|
Jonas Platte
|
a6a530dcc8
|
serde: Rename derive macro Outgoing to Incoming
All it does now is generate `Incoming{Self}` types.
|
2022-03-22 13:19:03 +01:00 |
|
Jonas Platte
|
5cf42f3a86
|
serde: Remove the Outgoing trait
|
2022-03-22 13:19:03 +01:00 |
|
Kévin Commaille
|
e2375ed72e
|
xtask: Add typos check
|
2022-03-18 14:29:57 +01:00 |
|
Kévin Commaille
|
bdcf07be87
|
common: Merge ruma-serde into ruma-common
|
2022-03-10 12:11:00 +01:00 |
|
Kévin Commaille
|
088d1872b7
|
common: Merge ruma-identifiers into ruma-common
|
2022-03-09 17:46:51 +00:00 |
|
Kévin Commaille
|
c3f9a3cb70
|
common: Merge ruma-events into ruma-common
|
2022-03-04 11:45:07 +00:00 |
|
Kévin Commaille
|
f32dcb9254
|
common: Merge ruma-api into ruma-common
|
2022-03-03 14:01:51 +01:00 |
|