pub struct MinimalStateEvent<C: PossiblyRedactedStateEventContent + RedactContent> {
pub content: C,
pub event_id: Option<OwnedEventId>,
}Expand description
A minimal state event.
This type can hold a possibly-redacted state event with an optional event ID. The event ID is optional so this type can also hold events from invited rooms, where event IDs are not available.
Fields§
§content: CThe event’s content.
event_id: Option<OwnedEventId>The event’s ID, if known.
Implementations§
Trait Implementations§
Source§impl<C: Clone + PossiblyRedactedStateEventContent + RedactContent> Clone for MinimalStateEvent<C>
impl<C: Clone + PossiblyRedactedStateEventContent + RedactContent> Clone for MinimalStateEvent<C>
Source§impl<C: Debug + PossiblyRedactedStateEventContent + RedactContent> Debug for MinimalStateEvent<C>
impl<C: Debug + PossiblyRedactedStateEventContent + RedactContent> Debug for MinimalStateEvent<C>
Source§impl<'de, C> Deserialize<'de> for MinimalStateEvent<C>where
C: Deserialize<'de> + PossiblyRedactedStateEventContent + RedactContent,
impl<'de, C> Deserialize<'de> for MinimalStateEvent<C>where
C: Deserialize<'de> + PossiblyRedactedStateEventContent + RedactContent,
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
Source§impl<C> From<&StrippedStateEvent<C>> for MinimalStateEvent<C>where
C: Clone + PossiblyRedactedStateEventContent + RedactContent,
impl<C> From<&StrippedStateEvent<C>> for MinimalStateEvent<C>where
C: Clone + PossiblyRedactedStateEventContent + RedactContent,
Source§impl From<&StrippedStateEvent<RoomCreateEventContent>> for MinimalStateEvent<RoomCreateWithCreatorEventContent>
impl From<&StrippedStateEvent<RoomCreateEventContent>> for MinimalStateEvent<RoomCreateWithCreatorEventContent>
Source§impl<C1, C2> From<&SyncStateEvent<C1>> for MinimalStateEvent<C2>
impl<C1, C2> From<&SyncStateEvent<C1>> for MinimalStateEvent<C2>
Source§impl From<&SyncStateEvent<RoomCreateEventContent>> for MinimalStateEvent<RoomCreateWithCreatorEventContent>
impl From<&SyncStateEvent<RoomCreateEventContent>> for MinimalStateEvent<RoomCreateWithCreatorEventContent>
Source§impl<C> From<StrippedStateEvent<C>> for MinimalStateEvent<C>where
C: PossiblyRedactedStateEventContent + RedactContent,
impl<C> From<StrippedStateEvent<C>> for MinimalStateEvent<C>where
C: PossiblyRedactedStateEventContent + RedactContent,
Source§impl<C1, C2> From<SyncStateEvent<C1>> for MinimalStateEvent<C2>
impl<C1, C2> From<SyncStateEvent<C1>> for MinimalStateEvent<C2>
Auto Trait Implementations§
impl<C> Freeze for MinimalStateEvent<C>where
C: Freeze,
impl<C> RefUnwindSafe for MinimalStateEvent<C>where
C: RefUnwindSafe,
impl<C> Send for MinimalStateEvent<C>where
C: Send,
impl<C> Sync for MinimalStateEvent<C>where
C: Sync,
impl<C> Unpin for MinimalStateEvent<C>where
C: Unpin,
impl<C> UnsafeUnpin for MinimalStateEvent<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for MinimalStateEvent<C>where
C: UnwindSafe,
Blanket Implementations§
impl<T> AsyncTraitDeps for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more