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 as RedactContent>::Redacted: RedactedStateEventContent + Debug + Clone,
impl<C> RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent + Debug + Clone,
Sourcepub fn deserialize(&self) -> Result<SyncOrStrippedState<C>, Error>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + EventContentFromType,
<C as StaticStateEventContent>::PossiblyRedacted: PossiblyRedactedStateEventContent + EventContentFromType,
pub fn deserialize(&self) -> Result<SyncOrStrippedState<C>, Error>where
C: StaticStateEventContent + EventContentFromType + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent<StateKey = <C as StateEventContent>::StateKey> + EventContentFromType,
<C as StaticStateEventContent>::PossiblyRedacted: PossiblyRedactedStateEventContent + EventContentFromType,
Try to deserialize the inner JSON as the expected type.
Trait Implementations
Source§impl<C> Clone for RawSyncOrStrippedState<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
<C as StaticStateEventContent>::PossiblyRedacted: Clone,
impl<C> Clone for RawSyncOrStrippedState<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
<C as StaticStateEventContent>::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 moreSource§impl<C> Debug for RawSyncOrStrippedState<C>where
C: Debug + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
<C as StaticStateEventContent>::PossiblyRedacted: Debug,
impl<C> Debug for RawSyncOrStrippedState<C>where
C: Debug + StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
<C as StaticStateEventContent>::PossiblyRedacted: Debug,
Source§impl<C> Serialize for RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent + Serialize,
<C as RedactContent>::Redacted: RedactedStateEventContent,
impl<C> Serialize for RawSyncOrStrippedState<C>where
C: StaticStateEventContent + RedactContent + Serialize,
<C as RedactContent>::Redacted: RedactedStateEventContent,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more