pub type SyncRoomGuestAccessEvent = SyncStateEvent<RoomGuestAccessEventContent>;
Available on crate feature
events
only.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<C> SyncStateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + RedactedStateEventContent,
impl<C> SyncStateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + RedactedStateEventContent,
Sourcepub fn event_type(&self) -> StateEventType
Available on crate feature unstable-msc3489
only.
pub fn event_type(&self) -> StateEventType
unstable-msc3489
only.Returns the type
of this event.
Sourcepub fn event_id(&self) -> &EventId
Available on crate feature unstable-msc3489
only.
pub fn event_id(&self) -> &EventId
unstable-msc3489
only.Returns this event’s event_id
field.
Sourcepub fn sender(&self) -> &UserId
Available on crate feature unstable-msc3489
only.
pub fn sender(&self) -> &UserId
unstable-msc3489
only.Returns this event’s sender
field.
Sourcepub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Available on crate feature unstable-msc3489
only.
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
unstable-msc3489
only.Returns this event’s origin_server_ts
field.
Sourcepub fn state_key(&self) -> &<C as StateEventContent>::StateKey
Available on crate feature unstable-msc3489
only.
pub fn state_key(&self) -> &<C as StateEventContent>::StateKey
unstable-msc3489
only.Returns this event’s state_key
field.
Sourcepub fn as_original(&self) -> Option<&OriginalSyncStateEvent<C>>
Available on crate feature unstable-msc3489
only.
pub fn as_original(&self) -> Option<&OriginalSyncStateEvent<C>>
unstable-msc3489
only.Get the inner OriginalSyncStateEvent
if this is an unredacted event.
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> StateEvent<C>
Available on crate feature unstable-msc3489
only.
pub fn into_full_event(self, room_id: OwnedRoomId) -> StateEvent<C>
unstable-msc3489
only.Convert this sync event into a full event (one with a room_id
field).
Source§impl SyncStateEvent<RoomGuestAccessEventContent>
impl SyncStateEvent<RoomGuestAccessEventContent>
Sourcepub fn guest_access(&self) -> &GuestAccess
Available on crate feature unstable-msc3489
only.
pub fn guest_access(&self) -> &GuestAccess
unstable-msc3489
only.Obtain the guest access policy, regardless of whether this event is redacted.
Trait Implementations
Source§impl<C> Clone for SyncStateEvent<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent + Clone,
impl<C> Clone for SyncStateEvent<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent + Clone,
Source§fn clone(&self) -> SyncStateEvent<C>
fn clone(&self) -> SyncStateEvent<C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C> Debug for SyncStateEvent<C>where
C: Debug + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent + Debug,
impl<C> Debug for SyncStateEvent<C>where
C: Debug + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent + Debug,
Source§impl<'de, C> Deserialize<'de> for SyncStateEvent<C>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + EventContentFromType + RedactedStateEventContent,
impl<'de, C> Deserialize<'de> for SyncStateEvent<C>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + EventContentFromType + RedactedStateEventContent,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SyncStateEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SyncStateEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C> From<StateEvent<C>> for SyncStateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
impl<C> From<StateEvent<C>> for SyncStateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
Source§fn from(full: StateEvent<C>) -> SyncStateEvent<C>
fn from(full: StateEvent<C>) -> SyncStateEvent<C>
Converts to this type from the input type.