Enum ruma_signatures::Verified[][src]

pub enum Verified {
    All,
    Signatures,
}

A value returned when an event is successfully verified.

Event verification involves verifying both signatures and a content hash. It is possible for the signatures on an event to be valid, but for the hash to be different than the one calculated during verification. This is not necessarily an error condition, as it may indicate that the event has been redacted. In this case, receiving homeservers should store a redacted version of the event.

Variants

All

All signatures are valid and the content hashes match.

Signatures

All signatures are valid but the content hashes don’t match.

This may indicate a redacted event.

Trait Implementations

impl Clone for Verified[src]

impl Debug for Verified[src]

impl Hash for Verified[src]

impl PartialEq<Verified> for Verified[src]

impl StructuralPartialEq for Verified[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> From<T> 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.