Fix ruma_api attributes in r0::directory::*
This commit is contained in:
parent
4e319ae27e
commit
122aeccf96
@ -18,14 +18,17 @@ ruma_api! {
|
||||
request {
|
||||
/// Limit for the number of results to return.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(query)]
|
||||
limit: Option<UInt>,
|
||||
/// Pagination token from a previous request.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(query)]
|
||||
since: Option<String>,
|
||||
/// The server to fetch the public room lists from.
|
||||
///
|
||||
/// `None` means the server this request is sent to.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(query)]
|
||||
server: Option<String>,
|
||||
}
|
||||
|
||||
|
@ -21,18 +21,16 @@ ruma_api! {
|
||||
///
|
||||
/// `None` means the server this request is sent to.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(query)]
|
||||
server: Option<String>,
|
||||
/// Limit for the number of results to return.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(body)]
|
||||
limit: Option<UInt>,
|
||||
/// Pagination token from a previous request.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(body)]
|
||||
since: Option<String>,
|
||||
/// Filter to apply to the results.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[ruma_api(body)]
|
||||
filter: Option<Filter>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user