identity-service-api: Remove extraneous indentation
This commit is contained in:
parent
0d617995b2
commit
e7643d4c77
@ -3,24 +3,24 @@
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
ruma_api! {
|
||||
metadata: {
|
||||
description: "Called by a client to indicate that the user has accepted/agreed to the included set of URLs.",
|
||||
method: POST,
|
||||
name: "accept_terms_of_service",
|
||||
path: "/_matrix/identity/v2/terms",
|
||||
authentication: AccessToken,
|
||||
rate_limited: false,
|
||||
}
|
||||
metadata: {
|
||||
description: "Called by a client to indicate that the user has accepted/agreed to the included set of URLs.",
|
||||
method: POST,
|
||||
name: "accept_terms_of_service",
|
||||
path: "/_matrix/identity/v2/terms",
|
||||
authentication: AccessToken,
|
||||
rate_limited: false,
|
||||
}
|
||||
|
||||
request: {
|
||||
/// The URLs the user is accepting in this request.
|
||||
///
|
||||
/// An example is "https://example.org/somewhere/terms-2.0-en.html".
|
||||
pub user_accepts: Vec<String>,
|
||||
}
|
||||
request: {
|
||||
/// The URLs the user is accepting in this request.
|
||||
///
|
||||
/// An example is "https://example.org/somewhere/terms-2.0-en.html".
|
||||
pub user_accepts: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
response: {}
|
||||
#[derive(Default)]
|
||||
response: {}
|
||||
}
|
||||
|
||||
impl Request {
|
||||
|
@ -6,24 +6,24 @@ use ruma_api::ruma_api;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
ruma_api! {
|
||||
metadata: {
|
||||
description: "Gets all the terms of service offered by the server.",
|
||||
method: GET,
|
||||
name: "get_terms_of_service",
|
||||
path: "/_matrix/identity/v2/terms",
|
||||
authentication: None,
|
||||
rate_limited: false,
|
||||
}
|
||||
metadata: {
|
||||
description: "Gets all the terms of service offered by the server.",
|
||||
method: GET,
|
||||
name: "get_terms_of_service",
|
||||
path: "/_matrix/identity/v2/terms",
|
||||
authentication: None,
|
||||
rate_limited: false,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
request: {}
|
||||
#[derive(Default)]
|
||||
request: {}
|
||||
|
||||
response: {
|
||||
/// The policies the server offers.
|
||||
///
|
||||
/// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object.
|
||||
pub policies: BTreeMap<String, Policies>
|
||||
}
|
||||
response: {
|
||||
/// The policies the server offers.
|
||||
///
|
||||
/// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object.
|
||||
pub policies: BTreeMap<String, Policies>
|
||||
}
|
||||
}
|
||||
|
||||
impl Request {
|
||||
|
Loading…
x
Reference in New Issue
Block a user