Type Alias ruma_events::room::guest_access::RoomGuestAccessEvent

source ·
pub type RoomGuestAccessEvent = StateEvent<RoomGuestAccessEventContent>;
Expand description

An m.room.guest_access event.

Aliased Type§

enum RoomGuestAccessEvent {
    Original(OriginalStateEvent<RoomGuestAccessEventContent>),
    Redacted(RedactedStateEvent<RedactedRoomGuestAccessEventContent>),
}

Variants§

§

Original(OriginalStateEvent<RoomGuestAccessEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedStateEvent<RedactedRoomGuestAccessEventContent>)

Redacted form of the event with minimal fields.

Implementations§

source§

impl RoomGuestAccessEvent

source

pub fn guest_access(&self) -> &GuestAccess

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