ruma_events::room::guest_access

Type Alias SyncRoomGuestAccessEvent

Source
pub type SyncRoomGuestAccessEvent = SyncStateEvent<RoomGuestAccessEventContent>;
Expand description

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

Aliased Type§

enum SyncRoomGuestAccessEvent {
    Original(OriginalSyncStateEvent<RoomGuestAccessEventContent>),
    Redacted(RedactedSyncStateEvent<RedactedRoomGuestAccessEventContent>),
}

Variants§

§

Original(OriginalSyncStateEvent<RoomGuestAccessEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedSyncStateEvent<RedactedRoomGuestAccessEventContent>)

Redacted form of the event with minimal fields.

Implementations§

Source§

impl SyncRoomGuestAccessEvent

Source

pub fn guest_access(&self) -> &GuestAccess

Obtain the guest access policy, regardless of whether this event is redacted.