diff --git a/crates/ruma-client-api/src/media/create_content_async.rs b/crates/ruma-client-api/src/media/create_content_async.rs index eb23097e..6c037292 100644 --- a/crates/ruma-client-api/src/media/create_content_async.rs +++ b/crates/ruma-client-api/src/media/create_content_async.rs @@ -19,14 +19,14 @@ pub mod unstable { } request: { - /// The media ID from the mxc:// URI (the path component). - #[ruma_api(path)] - pub media_id: &'a str, - /// The server name from the mxc:// URI (the authoritory component). #[ruma_api(path)] pub server_name: &'a ServerName, + /// The media ID from the mxc:// URI (the path component). + #[ruma_api(path)] + pub media_id: &'a str, + /// The file contents to upload. #[ruma_api(raw_body)] pub file: &'a [u8], diff --git a/crates/ruma-client-api/src/media/get_content.rs b/crates/ruma-client-api/src/media/get_content.rs index 8ff722cd..015367cb 100644 --- a/crates/ruma-client-api/src/media/get_content.rs +++ b/crates/ruma-client-api/src/media/get_content.rs @@ -25,14 +25,14 @@ pub mod v3 { } request: { - /// The media ID from the mxc:// URI (the path component). - #[ruma_api(path)] - pub media_id: &'a str, - /// The server name from the mxc:// URI (the authoritory component). #[ruma_api(path)] pub server_name: &'a ServerName, + /// The media ID from the mxc:// URI (the path component). + #[ruma_api(path)] + pub media_id: &'a str, + /// Whether to fetch media deemed remote. /// /// Used to prevent routing loops. Defaults to `true`. diff --git a/crates/ruma-client-api/src/media/get_content_as_filename.rs b/crates/ruma-client-api/src/media/get_content_as_filename.rs index c45ab8b8..e57002a3 100644 --- a/crates/ruma-client-api/src/media/get_content_as_filename.rs +++ b/crates/ruma-client-api/src/media/get_content_as_filename.rs @@ -23,14 +23,14 @@ pub mod v3 { } request: { - /// The media ID from the mxc:// URI (the path component). - #[ruma_api(path)] - pub media_id: &'a str, - /// The server name from the mxc:// URI (the authoritory component). #[ruma_api(path)] pub server_name: &'a ServerName, + /// The media ID from the mxc:// URI (the path component). + #[ruma_api(path)] + pub media_id: &'a str, + /// The filename to return in the `Content-Disposition` header. #[ruma_api(path)] pub filename: &'a str, diff --git a/crates/ruma-client-api/src/media/get_content_thumbnail.rs b/crates/ruma-client-api/src/media/get_content_thumbnail.rs index 298fac62..bcbccf07 100644 --- a/crates/ruma-client-api/src/media/get_content_thumbnail.rs +++ b/crates/ruma-client-api/src/media/get_content_thumbnail.rs @@ -24,14 +24,14 @@ pub mod v3 { } request: { - /// The media ID from the mxc:// URI (the path component). - #[ruma_api(path)] - pub media_id: &'a str, - /// The server name from the mxc:// URI (the authoritory component). #[ruma_api(path)] pub server_name: &'a ServerName, + /// The media ID from the mxc:// URI (the path component). + #[ruma_api(path)] + pub media_id: &'a str, + /// The desired resizing method. #[ruma_api(query)] #[serde(skip_serializing_if = "Option::is_none")] diff --git a/crates/ruma-client-api/src/typing/create_typing_event.rs b/crates/ruma-client-api/src/typing/create_typing_event.rs index d77aee51..f3d3c851 100644 --- a/crates/ruma-client-api/src/typing/create_typing_event.rs +++ b/crates/ruma-client-api/src/typing/create_typing_event.rs @@ -23,14 +23,14 @@ pub mod v3 { } request: { - /// The user who has started to type. - #[ruma_api(path)] - pub user_id: &'a UserId, - /// The room in which the user is typing. #[ruma_api(path)] pub room_id: &'a RoomId, + /// The user who has started to type. + #[ruma_api(path)] + pub user_id: &'a UserId, + /// Whether the user is typing within a length of time or not. #[serde(flatten)] pub state: Typing,