appservice-api: Make remaining request / response types non-exhaustive

This commit is contained in:
Jonas Platte 2020-08-20 20:59:41 +02:00
parent 135bea8562
commit 5182015b76
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
5 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,7 @@ ruma_api! {
requires_authentication: true,
}
#[non_exhaustive]
request: {
/// The protocol used to communicate to the third party network.
#[ruma_api(path)]
@ -26,6 +27,7 @@ ruma_api! {
pub fields: BTreeMap<String, String>,
}
#[non_exhaustive]
response: {
/// List of matched third party locations.
#[ruma_api(body)]

View File

@ -14,12 +14,14 @@ ruma_api! {
requires_authentication: true,
}
#[non_exhaustive]
request: {
/// The Matrix room alias to look up.
#[ruma_api(query)]
pub alias: &'a RoomAliasId,
}
#[non_exhaustive]
response: {
/// List of matched third party locations.
#[ruma_api(body)]

View File

@ -13,12 +13,14 @@ ruma_api! {
requires_authentication: true,
}
#[non_exhaustive]
request: {
/// The name of the protocol.
#[ruma_api(path)]
pub protocol: &'a str,
}
#[non_exhaustive]
response: {
/// Metadata about the protocol.
#[ruma_api(body)]

View File

@ -15,6 +15,7 @@ ruma_api! {
requires_authentication: true,
}
#[non_exhaustive]
request: {
/// The protocol used to communicate to the third party network.
#[ruma_api(path)]
@ -26,6 +27,7 @@ ruma_api! {
pub fields: BTreeMap<String, String>,
}
#[non_exhaustive]
response: {
/// List of matched third party users.
#[ruma_api(body)]

View File

@ -14,12 +14,14 @@ ruma_api! {
requires_authentication: true,
}
#[non_exhaustive]
request: {
/// The Matrix User ID to look up.
#[ruma_api(query)]
pub userid: &'a UserId,
}
#[non_exhaustive]
response: {
/// List of matched third party users.
#[ruma_api(body)]