pub struct RoomMemberUnsigned {
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub prev_content: Option<RoomMemberEventContent>,
pub invite_room_state: Vec<Raw<AnyStrippedStateEvent>>,
pub relations: BundledStateRelations,
}
events
only.Expand description
Extra information about a message event that is not incorporated into the event’s hash.
Fields§
§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<RoomMemberEventContent>
Optional previous content of the event.
invite_room_state: Vec<Raw<AnyStrippedStateEvent>>
State events to assist the receiver in identifying the room.
relations: BundledStateRelations
Bundled aggregations of related child events.
Implementations§
source§impl RoomMemberUnsigned
impl RoomMemberUnsigned
sourcepub fn new() -> RoomMemberUnsigned
pub fn new() -> RoomMemberUnsigned
Create a new Unsigned
with fields set to None
.
Trait Implementations§
source§impl CanBeEmpty for RoomMemberUnsigned
impl CanBeEmpty for RoomMemberUnsigned
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 RoomMemberUnsigned
impl Clone for RoomMemberUnsigned
source§fn clone(&self) -> RoomMemberUnsigned
fn clone(&self) -> RoomMemberUnsigned
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RoomMemberUnsigned
impl Debug for RoomMemberUnsigned
source§impl Default for RoomMemberUnsigned
impl Default for RoomMemberUnsigned
source§fn default() -> RoomMemberUnsigned
fn default() -> RoomMemberUnsigned
source§impl<'de> Deserialize<'de> for RoomMemberUnsigned
impl<'de> Deserialize<'de> for RoomMemberUnsigned
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomMemberUnsigned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomMemberUnsigned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RoomMemberUnsigned
impl RefUnwindSafe for RoomMemberUnsigned
impl Send for RoomMemberUnsigned
impl Sync for RoomMemberUnsigned
impl Unpin for RoomMemberUnsigned
impl UnwindSafe for RoomMemberUnsigned
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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