//! Types for the *m.policy.rule.user* event. use ruma_events_macros::EventContent; use serde::{Deserialize, Serialize}; use crate::{policy::rule::PolicyRuleEventContent, StateEvent}; /// This event type is used to apply rules to user entities. pub type UserEvent = StateEvent; /// The payload for `UserEvent`. #[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[allow(clippy::exhaustive_structs)] #[ruma_event(type = "m.policy.rule.user", kind = State)] pub struct UserEventContent(pub PolicyRuleEventContent);