#[non_exhaustive]pub enum StrippedState {
Stripped(AnyStrippedStateEvent),
}Available on crate features
client or server only.Expand description
Possible event formats that may appear in stripped state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stripped(AnyStrippedStateEvent)
A stripped state event.
Implementations§
Source§impl StrippedState
impl StrippedState
Sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Returns the type of this event.
Sourcepub fn event_id(&self) -> Option<&EventId>
pub fn event_id(&self) -> Option<&EventId>
Returns this event’s event_id field, if there is one.
Sourcepub fn origin_server_ts(&self) -> Option<MilliSecondsSinceUnixEpoch>
pub fn origin_server_ts(&self) -> Option<MilliSecondsSinceUnixEpoch>
Returns this event’s origin_server_ts field, if there is one.
Trait Implementations§
Source§impl Clone for StrippedState
impl Clone for StrippedState
Source§fn clone(&self) -> StrippedState
fn clone(&self) -> StrippedState
Returns a duplicate 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 Debug for StrippedState
impl Debug for StrippedState
Source§impl<'de> Deserialize<'de> for StrippedState
impl<'de> Deserialize<'de> for StrippedState
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl JsonCastable<AnyStrippedStateEvent> for StrippedState
impl JsonCastable<Map<String, Value>> for StrippedState
impl JsonCastable<StrippedState> for AnyStateEvent
impl JsonCastable<StrippedState> for AnyStrippedStateEvent
impl JsonCastable<StrippedState> for AnySyncStateEvent
impl<C> JsonCastable<StrippedState> for OriginalStateEvent<C>where
C: StaticStateEventContent,
impl<C> JsonCastable<StrippedState> for OriginalSyncStateEvent<C>where
C: StaticStateEventContent,
impl<C> JsonCastable<StrippedState> for RedactedStateEvent<C>where
C: RedactedStateEventContent,
impl<C> JsonCastable<StrippedState> for RedactedSyncStateEvent<C>where
C: RedactedStateEventContent,
impl<C> JsonCastable<StrippedState> for StateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
impl<C> JsonCastable<StrippedState> for StrippedStateEvent<C>where
C: PossiblyRedactedStateEventContent,
impl<C> JsonCastable<StrippedState> for SyncStateEvent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
Auto Trait Implementations§
impl Freeze for StrippedState
impl RefUnwindSafe for StrippedState
impl Send for StrippedState
impl Sync for StrippedState
impl Unpin for StrippedState
impl UnwindSafe for StrippedState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more