Struct ruma::events::MessageLikeUnsigned
source · [−]pub struct MessageLikeUnsigned {
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub relations: Option<Relations>,
}
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.
relations: Option<Relations>
Bundled aggregations of related child events.
Implementations
sourceimpl MessageLikeUnsigned
impl MessageLikeUnsigned
sourcepub fn new() -> MessageLikeUnsigned
pub fn new() -> MessageLikeUnsigned
Create a new Unsigned
with fields set to None
.
Trait Implementations
sourceimpl CanBeEmpty for MessageLikeUnsigned
impl CanBeEmpty for MessageLikeUnsigned
sourcefn 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.
sourceimpl Clone for MessageLikeUnsigned
impl Clone for MessageLikeUnsigned
sourcefn clone(&self) -> MessageLikeUnsigned
fn clone(&self) -> MessageLikeUnsigned
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more