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