Struct matrix_sdk_base::ruma::events::StateUnsigned
source · #[non_exhaustive]pub struct StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,{
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub prev_content: Option<C>,
pub relations: BundledStateRelations,
}
Expand description
Extra information about a state event that is not incorporated into the event’s hash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.age: Option<Int>
The time in milliseconds that has elapsed since the event was sent.
This field is generated by the local homeserver, and may be incorrect if the local time on at least one of the two servers is out of sync, which can cause the age to either be negative or greater than it actually is.
transaction_id: Option<OwnedTransactionId>
The client-supplied transaction ID, if the client being given the event is the same one which sent it.
prev_content: Option<C>
Optional previous content of the event.
relations: BundledStateRelations
Bundled aggregations of related child events.
Implementations§
source§impl<C> StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
impl<C> StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
sourcepub fn new() -> StateUnsigned<C>
pub fn new() -> StateUnsigned<C>
Create a new Unsigned
with fields set to None
.
Trait Implementations§
source§impl<C> CanBeEmpty for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
impl<C> CanBeEmpty for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether this unsigned data is empty (all fields are None
).
This method is used to determine whether to skip serializing the unsigned
field in room
events. Do not use it to determine whether an incoming unsigned
field was present - it
could still have been present but contained none of the known fields.
source§impl<C> Clone for StateUnsigned<C>where
C: Clone + PossiblyRedactedStateEventContent,
impl<C> Clone for StateUnsigned<C>where
C: Clone + PossiblyRedactedStateEventContent,
source§fn clone(&self) -> StateUnsigned<C>
fn clone(&self) -> StateUnsigned<C>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<C> Debug for StateUnsigned<C>where
C: Debug + PossiblyRedactedStateEventContent,
impl<C> Debug for StateUnsigned<C>where
C: Debug + PossiblyRedactedStateEventContent,
source§impl<C> Default for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
impl<C> Default for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent,
source§fn default() -> StateUnsigned<C>
fn default() -> StateUnsigned<C>
source§impl<'de, C> Deserialize<'de> for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent + Deserialize<'de>,
impl<'de, C> Deserialize<'de> for StateUnsigned<C>where
C: PossiblyRedactedStateEventContent + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUnsigned<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StateUnsigned<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl<C> Freeze for StateUnsigned<C>where
C: Freeze,
impl<C> RefUnwindSafe for StateUnsigned<C>where
C: RefUnwindSafe,
impl<C> Send for StateUnsigned<C>where
C: Send,
impl<C> Sync for StateUnsigned<C>where
C: Sync,
impl<C> Unpin for StateUnsigned<C>where
C: Unpin,
impl<C> UnwindSafe for StateUnsigned<C>where
C: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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