Type Alias ruma_events::room::join_rules::SyncRoomJoinRulesEvent

source ·
pub type SyncRoomJoinRulesEvent = SyncStateEvent<RoomJoinRulesEventContent>;
Expand description

An m.room.join_rules event from a sync_events response.

Aliased Type§

enum SyncRoomJoinRulesEvent {
    Original(OriginalSyncStateEvent<RoomJoinRulesEventContent>),
    Redacted(RedactedSyncStateEvent<RedactedRoomJoinRulesEventContent>),
}

Variants§

§

Original(OriginalSyncStateEvent<RoomJoinRulesEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedSyncStateEvent<RedactedRoomJoinRulesEventContent>)

Redacted form of the event with minimal fields.

Implementations§

source§

impl SyncRoomJoinRulesEvent

source

pub fn join_rule(&self) -> &JoinRule

Obtain the join rule, regardless of whether this event is redacted.