Struct ruma_events::MessageLikeUnsigned
source · pub struct MessageLikeUnsigned<C: MessageLikeEventContent> {
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub relations: BundledMessageLikeRelations<OriginalSyncMessageLikeEvent<C>>,
}
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.
relations: BundledMessageLikeRelations<OriginalSyncMessageLikeEvent<C>>
Bundled aggregations of related child events.
Implementations§
source§impl<C: MessageLikeEventContent> MessageLikeUnsigned<C>
impl<C: MessageLikeEventContent> MessageLikeUnsigned<C>
Trait Implementations§
source§impl<C: MessageLikeEventContent> CanBeEmpty for MessageLikeUnsigned<C>
impl<C: MessageLikeEventContent> CanBeEmpty for MessageLikeUnsigned<C>
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 + MessageLikeEventContent> Clone for MessageLikeUnsigned<C>
impl<C: Clone + MessageLikeEventContent> Clone for MessageLikeUnsigned<C>
source§fn clone(&self) -> MessageLikeUnsigned<C>
fn clone(&self) -> MessageLikeUnsigned<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 + MessageLikeEventContent> Debug for MessageLikeUnsigned<C>
impl<C: Debug + MessageLikeEventContent> Debug for MessageLikeUnsigned<C>
source§impl<C: MessageLikeEventContent> Default for MessageLikeUnsigned<C>
impl<C: MessageLikeEventContent> Default for MessageLikeUnsigned<C>
source§impl<'de, C: MessageLikeEventContent> Deserialize<'de> for MessageLikeUnsigned<C>where
OriginalSyncMessageLikeEvent<C>: DeserializeOwned,
impl<'de, C: MessageLikeEventContent> Deserialize<'de> for MessageLikeUnsigned<C>where
OriginalSyncMessageLikeEvent<C>: DeserializeOwned,
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>,
Auto Trait Implementations§
impl<C> Freeze for MessageLikeUnsigned<C>
impl<C> RefUnwindSafe for MessageLikeUnsigned<C>where
C: RefUnwindSafe,
impl<C> Send for MessageLikeUnsigned<C>where
C: Send,
impl<C> Sync for MessageLikeUnsigned<C>where
C: Sync,
impl<C> Unpin for MessageLikeUnsigned<C>
impl<C> UnwindSafe for MessageLikeUnsigned<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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)