pub mod v3 {
use ruma_common::{api::ruma_api, push::Ruleset};
ruma_api! {
metadata: {
description: "Retrieve all push rulesets in the global scope for this user.",
method: GET,
name: "get_pushrules_global_scope",
r0_path: "/_matrix/client/r0/pushrules/global/",
stable_path: "/_matrix/client/v3/pushrules/global/",
rate_limited: false,
authentication: AccessToken,
added: 1.0,
}
#[derive(Default)]
request: {}
response: {
#[ruma_api(body)]
pub global: Ruleset,
}
error: crate::Error
}
impl Request {
pub fn new() -> Self {
Self {}
}
}
impl Response {
pub fn new(global: Ruleset) -> Self {
Self { global }
}
}
}