diff --git a/ruma-identity-service-api/src/tos/accept_terms_of_service/v2.rs b/ruma-identity-service-api/src/tos/accept_terms_of_service/v2.rs index ae27b7d9..08c250eb 100644 --- a/ruma-identity-service-api/src/tos/accept_terms_of_service/v2.rs +++ b/ruma-identity-service-api/src/tos/accept_terms_of_service/v2.rs @@ -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, - } + 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, + } - #[derive(Default)] - response: {} + #[derive(Default)] + response: {} } impl Request { diff --git a/ruma-identity-service-api/src/tos/get_terms_of_service/v2.rs b/ruma-identity-service-api/src/tos/get_terms_of_service/v2.rs index add52d3e..988abaea 100644 --- a/ruma-identity-service-api/src/tos/get_terms_of_service/v2.rs +++ b/ruma-identity-service-api/src/tos/get_terms_of_service/v2.rs @@ -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 - } + response: { + /// The policies the server offers. + /// + /// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object. + pub policies: BTreeMap + } } impl Request {