Struct ruma::events::key::verification::accept::SasV1ContentInit     
source · [−]pub struct SasV1ContentInit {
    pub key_agreement_protocol: KeyAgreementProtocol,
    pub hash: HashAlgorithm,
    pub message_authentication_code: MessageAuthenticationCode,
    pub short_authentication_string: Vec<ShortAuthenticationString, Global>,
    pub commitment: Base64<Standard, Vec<u8, Global>>,
}Expand description
Mandatory initial set of fields for creating an accept SasV1Content.
Fields
key_agreement_protocol: KeyAgreementProtocolThe key agreement protocol the device is choosing to use, out of the
options in the m.key.verification.start message.
hash: HashAlgorithmThe hash method the device is choosing to use, out of the options in the
m.key.verification.start message.
message_authentication_code: MessageAuthenticationCodeThe message authentication codes that the accepting device understands.
short_authentication_string: Vec<ShortAuthenticationString, Global>The SAS methods both devices involved in the verification process understand.
Must be a subset of the options in the m.key.verification.start
message.
commitment: Base64<Standard, Vec<u8, Global>>The hash (encoded as unpadded base64) of the concatenation of the
device’s ephemeral public key (encoded as unpadded base64) and the
canonical JSON representation of the m.key.verification.start message.
Trait Implementations
sourceimpl Debug for SasV1ContentInit
 
impl Debug for SasV1ContentInit
sourceimpl From<SasV1ContentInit> for SasV1Content
 
impl From<SasV1ContentInit> for SasV1Content
sourcefn from(init: SasV1ContentInit) -> SasV1Content
 
fn from(init: SasV1ContentInit) -> SasV1Content
Creates a new SasV1Content from the given init struct.
Auto Trait Implementations
impl RefUnwindSafe for SasV1ContentInit
impl Send for SasV1ContentInit
impl Sync for SasV1ContentInit
impl Unpin for SasV1ContentInit
impl UnwindSafe for SasV1ContentInit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
 
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
