Struct matrix_sdk::verification::SasVerification [−][src]
pub struct SasVerification { /* fields omitted */ }encryption only.Expand description
An object controlling the interactive verification flow.
Implementations
Accept the interactive verification flow with specific settings.
Arguments
settings- specific customizations to the verification flow.
Examples
use matrix_sdk::verification::SasVerification;
use matrix_sdk_base::crypto::AcceptSettings;
use matrix_sdk::ruma::events::key::verification::ShortAuthenticationString;
let sas = client
.get_verification(&user_id, flow_id)
.await
.unwrap()
.sas()
.unwrap();
let only_decimal = AcceptSettings::with_allowed_methods(
vec![ShortAuthenticationString::Decimal]
);
sas.accept_with_settings(only_decimal).await.unwrap();Confirm that the short auth strings match on both sides.
Get the emoji version of the short auth string.
Get the decimal version of the short auth string.
Does this verification flow support emoji for the short authentication string.
Are we in a state where we can show the short auth string.
Did we initiate the verification flow.
Get info about the cancellation if the verification flow has been cancelled.
Is the verification process canceled.
Get the other users device that we’re verifying.
Did this verification flow start from a verification request.
Is this a verification that is veryfying one of our own devices.
Get our own user id.
Get the user id of the other user participating in this verification flow.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SasVerification
impl Send for SasVerification
impl Sync for SasVerification
impl Unpin for SasVerification
impl !UnwindSafe for SasVerification
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more