pub type SyncRoomHistoryVisibilityEvent = SyncStateEvent<RoomHistoryVisibilityEventContent>;
Expand description

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

Aliased Type§

enum SyncRoomHistoryVisibilityEvent {
    Original(OriginalSyncStateEvent<RoomHistoryVisibilityEventContent>),
    Redacted(RedactedSyncStateEvent<RedactedRoomHistoryVisibilityEventContent>),
}

Variants§

§

Original(OriginalSyncStateEvent<RoomHistoryVisibilityEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedSyncStateEvent<RedactedRoomHistoryVisibilityEventContent>)

Redacted form of the event with minimal fields.

Implementations§

source§

impl SyncRoomHistoryVisibilityEvent

source

pub fn history_visibility(&self) -> &HistoryVisibility

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