pub struct MessageLikeUnsigned<C>where
    C: MessageLikeEventContent,{
    pub age: Option<Int>,
    pub transaction_id: Option<OwnedTransactionId>,
    pub relations: BundledMessageLikeRelations<OriginalSyncMessageLikeEvent<C>>,
}
Available on crate feature 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: BundledMessageLikeRelations<OriginalSyncMessageLikeEvent<C>>

Bundled aggregations of related child events.

Implementations§

source§

impl<C> MessageLikeUnsigned<C>where C: MessageLikeEventContent,

source

pub fn new() -> MessageLikeUnsigned<C>

Create a new Unsigned with fields set to None.

Trait Implementations§

source§

impl<C> CanBeEmpty for MessageLikeUnsigned<C>where C: MessageLikeEventContent,

source§

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 MessageLikeUnsigned<C>where C: Clone + MessageLikeEventContent,

source§

fn clone(&self) -> MessageLikeUnsigned<C>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<C> Debug for MessageLikeUnsigned<C>where C: Debug + MessageLikeEventContent,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<C> Default for MessageLikeUnsigned<C>where C: MessageLikeEventContent,

source§

fn default() -> MessageLikeUnsigned<C>

Returns the “default value” for a type. Read more
source§

impl<'de, C> Deserialize<'de> for MessageLikeUnsigned<C>where C: MessageLikeEventContent, OriginalSyncMessageLikeEvent<C>: DeserializeOwned,

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<MessageLikeUnsigned<C>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for Twhere W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for Twhere T: ?Sized,

§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,