use ruma::api::{auth_scheme::NoAuthentication, metadata, request, response};
metadata! {
method: GET,
rate_limited: false,
authentication: NoAuthentication,
path: "/_synapse/admin/v1/register",
}
#[request]
#[derive(Default)]
pub struct Request {}
#[response]
pub struct Response {
pub nonce: String,
}
impl Request {
pub fn new() -> Self {
Default::default()
}
}
impl Response {
pub fn new(nonce: String) -> Self {
Self { nonce }
}
}