Struct ruma_events::RedactedUnsigned[][src]

pub struct RedactedUnsigned {
    pub redacted_because: Option<Box<RedactionEvent>>,
}

Extra information about a redacted event that is not incorporated into the event’s hash.

Fields

redacted_because: Option<Box<RedactionEvent>>

The event that redacted this event, if any.

Implementations

impl RedactedUnsigned[src]

pub fn is_empty(&self) -> bool[src]

Whether this unsigned data is empty (redacted_because is None).

This method is used to determine whether to skip serializing the unsigned field in redacted 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.

Trait Implementations

impl Clone for RedactedUnsigned[src]

impl Debug for RedactedUnsigned[src]

impl Default for RedactedUnsigned[src]

impl<'de> Deserialize<'de> for RedactedUnsigned[src]

impl From<RedactedUnsigned> for RedactedSyncUnsigned[src]

impl Serialize for RedactedUnsigned[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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