#[non_exhaustive]pub struct RoomRedactionUnsigned {
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub relations: BundledMessageLikeRelations<OriginalSyncRoomRedactionEvent>,
}
Expand description
Extra information about a redaction 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.
relations: BundledMessageLikeRelations<OriginalSyncRoomRedactionEvent>
Bundled aggregations of related child events.
Implementations§
Source§impl RoomRedactionUnsigned
impl RoomRedactionUnsigned
Sourcepub fn new() -> RoomRedactionUnsigned
pub fn new() -> RoomRedactionUnsigned
Create a new Unsigned
with fields set to None
.
Trait Implementations§
Source§impl CanBeEmpty for RoomRedactionUnsigned
impl CanBeEmpty for RoomRedactionUnsigned
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 Clone for RoomRedactionUnsigned
impl Clone for RoomRedactionUnsigned
Source§fn clone(&self) -> RoomRedactionUnsigned
fn clone(&self) -> RoomRedactionUnsigned
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RoomRedactionUnsigned
impl Debug for RoomRedactionUnsigned
Source§impl Default for RoomRedactionUnsigned
impl Default for RoomRedactionUnsigned
Source§fn default() -> RoomRedactionUnsigned
fn default() -> RoomRedactionUnsigned
Source§impl<'de> Deserialize<'de> for RoomRedactionUnsigned
impl<'de> Deserialize<'de> for RoomRedactionUnsigned
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomRedactionUnsigned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomRedactionUnsigned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RoomRedactionUnsigned
impl RefUnwindSafe for RoomRedactionUnsigned
impl Send for RoomRedactionUnsigned
impl Sync for RoomRedactionUnsigned
impl Unpin for RoomRedactionUnsigned
impl UnwindSafe for RoomRedactionUnsigned
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,
§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