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