client-api: Reorder path fields

This commit is contained in:
Jonas Platte 2022-10-20 20:38:36 +02:00
parent 21bda6678d
commit 6ec01bfdb4
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
5 changed files with 20 additions and 20 deletions

View File

@ -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],

View File

@ -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`.

View File

@ -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,

View File

@ -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")]

View File

@ -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,