client-api: Reorder path fields
This commit is contained in:
parent
21bda6678d
commit
6ec01bfdb4
@ -19,14 +19,14 @@ pub mod unstable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
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).
|
/// The server name from the mxc:// URI (the authoritory component).
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub server_name: &'a ServerName,
|
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.
|
/// The file contents to upload.
|
||||||
#[ruma_api(raw_body)]
|
#[ruma_api(raw_body)]
|
||||||
pub file: &'a [u8],
|
pub file: &'a [u8],
|
||||||
|
@ -25,14 +25,14 @@ pub mod v3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
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).
|
/// The server name from the mxc:// URI (the authoritory component).
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub server_name: &'a ServerName,
|
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.
|
/// Whether to fetch media deemed remote.
|
||||||
///
|
///
|
||||||
/// Used to prevent routing loops. Defaults to `true`.
|
/// Used to prevent routing loops. Defaults to `true`.
|
||||||
|
@ -23,14 +23,14 @@ pub mod v3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
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).
|
/// The server name from the mxc:// URI (the authoritory component).
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub server_name: &'a ServerName,
|
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.
|
/// The filename to return in the `Content-Disposition` header.
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub filename: &'a str,
|
pub filename: &'a str,
|
||||||
|
@ -24,14 +24,14 @@ pub mod v3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
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).
|
/// The server name from the mxc:// URI (the authoritory component).
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub server_name: &'a ServerName,
|
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.
|
/// The desired resizing method.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
@ -23,14 +23,14 @@ pub mod v3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
request: {
|
||||||
/// The user who has started to type.
|
|
||||||
#[ruma_api(path)]
|
|
||||||
pub user_id: &'a UserId,
|
|
||||||
|
|
||||||
/// The room in which the user is typing.
|
/// The room in which the user is typing.
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub room_id: &'a RoomId,
|
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.
|
/// Whether the user is typing within a length of time or not.
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub state: Typing,
|
pub state: Typing,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user