ruma_events::room::history_visibility

Type Alias SyncRoomHistoryVisibilityEvent

Source
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.