pub struct VerificationMetadata {
pub attempted_at: MilliSecondsSinceUnixEpoch,
pub signature_verification: PartsVerified,
pub room_version: KnownRoomVersionId,
pub soft_failed: bool,
}Expand description
Metadata recorded when attempting to verify the signature of an event.
Fields§
§attempted_at: MilliSecondsSinceUnixEpochTimestamp when verification was attempted.
signature_verification: PartsVerifiedSignature verification outcome for the event.
room_version: KnownRoomVersionIdRoom version used to verify the event.
soft_failed: boolWhether the event was soft-failed.
A soft-failed event passed all signature, event ID, and auth checks
against its declared auth_events and previous_state, but failed
authorization against the current room state (spec Server-Server
#5.1.6). It must still be persisted and participate in state
resolution, if further events are received which reference it, but
should not be relayed to clients or added to leaf events.
See https://spec.matrix.org/v1.17/server-server-api/#soft-failure for more information.
Trait Implementations§
Source§impl Clone for VerificationMetadata
impl Clone for VerificationMetadata
Source§fn clone(&self) -> VerificationMetadata
fn clone(&self) -> VerificationMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerificationMetadata
impl Debug for VerificationMetadata
Source§impl<'de> Deserialize<'de> for VerificationMetadata
impl<'de> Deserialize<'de> for VerificationMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VerificationMetadata
Source§impl PartialEq for VerificationMetadata
impl PartialEq for VerificationMetadata
Source§fn eq(&self, other: &VerificationMetadata) -> bool
fn eq(&self, other: &VerificationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationMetadata
impl Serialize for VerificationMetadata
impl StructuralPartialEq for VerificationMetadata
Auto Trait Implementations§
impl Freeze for VerificationMetadata
impl RefUnwindSafe for VerificationMetadata
impl Send for VerificationMetadata
impl Sync for VerificationMetadata
impl Unpin for VerificationMetadata
impl UnsafeUnpin for VerificationMetadata
impl UnwindSafe for VerificationMetadata
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.