Struct matrix_sdk::verification::VerificationRequest [−][src]
pub struct VerificationRequest { /* fields omitted */ }
encryption
only.Expand description
An object controlling the interactive verification flow.
Implementations
Has the verification been cancelled.
Get info about the cancellation if the verification request has been cancelled.
Get our own user id.
Has the verification request been answered by another device.
Did we initiate the verification flow.
Get the user id of the other user participating in this verification flow.
Is this a verification that is veryfying one of our own devices.
Get the supported verification methods of the other side.
Will be present only if the other side requested the verification or if we’re in the ready state.
Accept the verification request.
This method will accept the request and signal by default that it
supports the m.sas.v1
, the m.qr_code.show.v1
, and m.reciprocate.v1
method. If the qrcode
feature is disabled it will only signal that it
supports the m.sas.v1
method.
If QR code scanning should be supported or QR code showing shouldn’t be
supported the accept_with_methods()
method should be used instead.
Accept the verification request signaling that our client supports the given verification methods.
Arguments
methods
- The methods that we should advertise as supported by us.
This is supported on qrcode
only.
qrcode
only.Generate a QR code
Transition from this verification request into a SAS verification flow.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for VerificationRequest
impl Send for VerificationRequest
impl Sync for VerificationRequest
impl Unpin for VerificationRequest
impl !UnwindSafe for VerificationRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more