appservice-api: Make remaining request / response types non-exhaustive
This commit is contained in:
parent
135bea8562
commit
5182015b76
@ -15,6 +15,7 @@ ruma_api! {
|
|||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
request: {
|
request: {
|
||||||
/// The protocol used to communicate to the third party network.
|
/// The protocol used to communicate to the third party network.
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
@ -26,6 +27,7 @@ ruma_api! {
|
|||||||
pub fields: BTreeMap<String, String>,
|
pub fields: BTreeMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
response: {
|
response: {
|
||||||
/// List of matched third party locations.
|
/// List of matched third party locations.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
|
@ -14,12 +14,14 @@ ruma_api! {
|
|||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
request: {
|
request: {
|
||||||
/// The Matrix room alias to look up.
|
/// The Matrix room alias to look up.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
pub alias: &'a RoomAliasId,
|
pub alias: &'a RoomAliasId,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
response: {
|
response: {
|
||||||
/// List of matched third party locations.
|
/// List of matched third party locations.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
|
@ -13,12 +13,14 @@ ruma_api! {
|
|||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
request: {
|
request: {
|
||||||
/// The name of the protocol.
|
/// The name of the protocol.
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub protocol: &'a str,
|
pub protocol: &'a str,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
response: {
|
response: {
|
||||||
/// Metadata about the protocol.
|
/// Metadata about the protocol.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
|
@ -15,6 +15,7 @@ ruma_api! {
|
|||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
request: {
|
request: {
|
||||||
/// The protocol used to communicate to the third party network.
|
/// The protocol used to communicate to the third party network.
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
@ -26,6 +27,7 @@ ruma_api! {
|
|||||||
pub fields: BTreeMap<String, String>,
|
pub fields: BTreeMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
response: {
|
response: {
|
||||||
/// List of matched third party users.
|
/// List of matched third party users.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
|
@ -14,12 +14,14 @@ ruma_api! {
|
|||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
request: {
|
request: {
|
||||||
/// The Matrix User ID to look up.
|
/// The Matrix User ID to look up.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
pub userid: &'a UserId,
|
pub userid: &'a UserId,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
response: {
|
response: {
|
||||||
/// List of matched third party users.
|
/// List of matched third party users.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user