ruma_events::room::join_rules

Type Alias RoomJoinRulesEvent

Source
pub type RoomJoinRulesEvent = StateEvent<RoomJoinRulesEventContent>;
Expand description

An m.room.join_rules event.

Aliased Type§

enum RoomJoinRulesEvent {
    Original(OriginalStateEvent<RoomJoinRulesEventContent>),
    Redacted(RedactedStateEvent<RedactedRoomJoinRulesEventContent>),
}

Variants§

§

Original(OriginalStateEvent<RoomJoinRulesEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedStateEvent<RedactedRoomJoinRulesEventContent>)

Redacted form of the event with minimal fields.

Implementations§

Source§

impl RoomJoinRulesEvent

Source

pub fn join_rule(&self) -> &JoinRule

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