ruma_events::room::join_rules

Type Alias 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.