ruma_identity_service_api/discovery/get_server_status.rs
1//! `GET /_matrix/identity/*`
2//!
3//! Check the status of an identity server.
4
5pub mod v2 {
6 //! `/v2/` ([spec])
7 //!
8 //! [spec]: https://spec.matrix.org/latest/identity-service-api/#get_matrixidentityv2
9
10 use ruma_common::{
11 api::{request, response, Metadata},
12 metadata,
13 };
14
15 const METADATA: Metadata = metadata! {
16 method: GET,
17 rate_limited: false,
18 authentication: None,
19 history: {
20 1.0 => "/_matrix/identity/v2",
21 }
22 };
23
24 /// Request type for the `status` endpoint.
25 #[request]
26 #[derive(Default)]
27 pub struct Request {}
28
29 /// Response type for the `status` endpoint.
30 #[response]
31 #[derive(Default)]
32 pub struct Response {}
33
34 impl Request {
35 /// Creates an empty `Request`.
36 pub fn new() -> Self {
37 Self {}
38 }
39 }
40
41 impl Response {
42 /// Creates an empty `Response`.
43 pub fn new() -> Self {
44 Self {}
45 }
46 }
47}