pub type RoomHistoryVisibilityEvent = StateEvent<RoomHistoryVisibilityEventContent>;
Expand description

An m.room.history_visibility event.

Aliased Type§

enum RoomHistoryVisibilityEvent {
    Original(OriginalStateEvent<RoomHistoryVisibilityEventContent>),
    Redacted(RedactedStateEvent<RedactedRoomHistoryVisibilityEventContent>),
}

Variants§

§

Original(OriginalStateEvent<RoomHistoryVisibilityEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedStateEvent<RedactedRoomHistoryVisibilityEventContent>)

Redacted form of the event with minimal fields.

Implementations§

source§

impl RoomHistoryVisibilityEvent

source

pub fn history_visibility(&self) -> &HistoryVisibility

Obtain the history visibility, regardless of whether this event is redacted.