pub type RawMemberEvent = RawSyncOrStrippedState<RoomMemberEventContent>;
Expand description
Raw version of MemberEvent
.
Aliased Type§
enum RawMemberEvent {
Sync(Raw<SyncStateEvent<RoomMemberEventContent>>),
Stripped(Raw<StrippedStateEvent<RoomMemberEventContent>>),
}
Variants§
Sync(Raw<SyncStateEvent<RoomMemberEventContent>>)
An event from a room in joined or left state.
Stripped(Raw<StrippedStateEvent<RoomMemberEventContent>>)
An event from a room in invited state.
Implementations
Source§impl<C> RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent,
C::Redacted: RedactedStateEventContent + Debug + Clone,
impl<C> RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent,
C::Redacted: RedactedStateEventContent + Debug + Clone,
Sourcepub fn deserialize(&self) -> Result<SyncOrStrippedState<C>>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
C::Redacted: RedactedStateEventContent<StateKey = C::StateKey> + EventContentFromType,
C::PossiblyRedacted: PossiblyRedactedStateEventContent + EventContentFromType,
pub fn deserialize(&self) -> Result<SyncOrStrippedState<C>>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
C::Redacted: RedactedStateEventContent<StateKey = C::StateKey> + EventContentFromType,
C::PossiblyRedacted: PossiblyRedactedStateEventContent + EventContentFromType,
Try to deserialize the inner JSON as the expected type.
Trait Implementations
Source§impl<C> Clone for RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent + Clone,
C::Redacted: RedactedStateEventContent,
C::PossiblyRedacted: Clone,
impl<C> Clone for RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent + Clone,
C::Redacted: RedactedStateEventContent,
C::PossiblyRedacted: Clone,
Source§fn clone(&self) -> RawSyncOrStrippedState<C>
fn clone(&self) -> RawSyncOrStrippedState<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 more