Trait ruma_events::StateEvent
[−]
[src]
pub trait StateEvent: RoomEvent { fn prev_content(&self) -> Option<&Self::Content>; fn state_key(&self) -> &str; }
An event that describes persistent state about a room.
Required Methods
fn prev_content(&self) -> Option<&Self::Content>
The previous content for this state key, if any.
fn state_key(&self) -> &str
A key that determines which piece of room state the event represents.
Implementors
impl StateEvent for AliasesEvent
impl StateEvent for AvatarEvent
impl StateEvent for CanonicalAliasEvent
impl StateEvent for CreateEvent
impl StateEvent for GuestAccessEvent
impl StateEvent for HistoryVisibilityEvent
impl StateEvent for JoinRulesEvent
impl StateEvent for MemberEvent
impl StateEvent for NameEvent
impl StateEvent for PowerLevelsEvent
impl StateEvent for ThirdPartyInviteEvent
impl StateEvent for TopicEvent
impl StateEvent for CustomStateEvent