identity-service-api: Remove extraneous indentation

This commit is contained in:
Jonas Platte 2021-04-05 11:45:13 +02:00
parent 0d617995b2
commit e7643d4c77
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 32 additions and 32 deletions

View File

@ -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 {

View File

@ -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 {