17 lines
609 B
Rust
17 lines
609 B
Rust
//! Types for the [`m.policy.rule.user`] event.
|
|
//!
|
|
//! [`m.policy.rule.user`]: https://spec.matrix.org/v1.2/client-server-api/#mpolicyruleuser
|
|
|
|
use ruma_events_macros::EventContent;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::policy::rule::PolicyRuleEventContent;
|
|
|
|
/// The content of an `m.policy.rule.user` event.
|
|
///
|
|
/// This event type is used to apply rules to user entities.
|
|
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
|
|
#[allow(clippy::exhaustive_structs)]
|
|
#[ruma_event(type = "m.policy.rule.user", kind = State)]
|
|
pub struct PolicyRuleUserEventContent(pub PolicyRuleEventContent);
|