Type Alias ruma_events::room::history_visibility::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
impl SyncRoomHistoryVisibilityEvent
sourcepub fn history_visibility(&self) -> &HistoryVisibility
pub fn history_visibility(&self) -> &HistoryVisibility
Obtain the history visibility, regardless of whether this event is redacted.