pub struct IdentityVerification {Show 18 fields
request: OnceCell<VerificationRequest>,
request_changes_abort_handle: RefCell<Option<AbortHandle>>,
verification: RefCell<Option<Verification>>,
verification_changes_abort_handle: RefCell<Option<AbortHandle>>,
user: BoundConstructOnlyObject<User>,
room: WeakRef<Room>,
membership_handler: RefCell<Option<SignalHandlerId>>,
state: Cell<VerificationState>,
was_accepted: Cell<bool>,
is_finished: PhantomData<bool>,
supported_methods: RefCell<Vec<VerificationMethod>>,
flow_id: PhantomData<String>,
received_time: OnceCell<DateTime>,
received_timeout_source: RefCell<Option<SourceId>>,
display_name: PhantomData<String>,
pub(super) qr_code: RefCell<Option<QrCode>>,
pub(super) qrcode_scanner: RefCell<Option<QrCodeScanner>>,
was_viewed: Cell<bool>,
}Fields§
§request: OnceCell<VerificationRequest>The SDK’s verification request.
request_changes_abort_handle: RefCell<Option<AbortHandle>>§verification: RefCell<Option<Verification>>The SDK’s verification, if one was started.
verification_changes_abort_handle: RefCell<Option<AbortHandle>>§user: BoundConstructOnlyObject<User>The user to verify.
room: WeakRef<Room>The room of this verification, if any.
membership_handler: RefCell<Option<SignalHandlerId>>§state: Cell<VerificationState>The state of this verification
was_accepted: Cell<bool>Whether the verification request was accepted.
It means that the verification reached at least the Ready state.
is_finished: PhantomData<bool>Whether this verification is finished.
supported_methods: RefCell<Vec<VerificationMethod>>The supported methods of the verification request.
flow_id: PhantomData<String>The flow ID of this verification.
received_time: OnceCell<DateTime>The time and date when the verification request was received.
received_timeout_source: RefCell<Option<SourceId>>§display_name: PhantomData<String>The display name of this verification.
qr_code: RefCell<Option<QrCode>>The QR Code, if the QrCodeShowV1 method is supported.
qrcode_scanner: RefCell<Option<QrCodeScanner>>The QR code scanner, if the user wants to scan a QR Code and we have access to the camera.
was_viewed: Cell<bool>Whether this verification was viewed by the user.
Implementations§
Source§impl IdentityVerification
impl IdentityVerification
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl IdentityVerification
impl IdentityVerification
Sourcepub(super) async fn set_request(&self, request: VerificationRequest)
pub(super) async fn set_request(&self, request: VerificationRequest)
Set the SDK’s verification request.
Sourcepub(super) fn set_state(&self, state: VerificationState)
pub(super) fn set_state(&self, state: VerificationState)
Set the state of this verification.
Sourcefn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Whether this verification is finished.
Sourcefn set_supported_methods(&self, supported_methods: Vec<VerificationMethod>)
fn set_supported_methods(&self, supported_methods: Vec<VerificationMethod>)
Set the supported methods of this verification.
Sourcefn supported_methods(&self) -> VerificationSupportedMethods
fn supported_methods(&self) -> VerificationSupportedMethods
The supported methods of this verifications.
Sourcefn display_name(&self) -> String
fn display_name(&self) -> String
The display name of this verification request.
Sourcefn set_was_viewed(&self, was_viewed: bool)
fn set_was_viewed(&self, was_viewed: bool)
Set whether this verification was viewed by the user.
Sourcefn set_was_accepted(&self, was_accepted: bool)
fn set_was_accepted(&self, was_accepted: bool)
Set whether this request was accepted.
Sourceasync fn handle_request_state(&self, state: VerificationRequestState)
async fn handle_request_state(&self, state: VerificationRequestState)
Handle a change in the request’s state.
Sourcefn handle_cancelled_state(&self, cancel_info: &CancelInfo)
fn handle_cancelled_state(&self, cancel_info: &CancelInfo)
Handle when the request was cancelled.
Sourceasync fn set_verification(&self, verification: Verification)
async fn set_verification(&self, verification: Verification)
Set the SDK’s Verification.
Sourcefn handle_qr_verification_state(&self, state: QrVerificationState)
fn handle_qr_verification_state(&self, state: QrVerificationState)
Handle a change in the QR verification’s state.
Sourcepub(super) fn qr_verification(&self) -> Option<QrVerification>
pub(super) fn qr_verification(&self) -> Option<QrVerification>
The SDK’s QR verification, if one was started.
Sourceasync fn handle_sas_verification_state(&self, state: SasState)
async fn handle_sas_verification_state(&self, state: SasState)
Handle a change in the SAS verification’s state.
Sourcepub(super) fn sas_verification(&self) -> Option<SasVerification>
pub(super) fn sas_verification(&self) -> Option<SasVerification>
The SDK’s SAS verification, if one was started.
Sourceasync fn load_qr_code(&self) -> bool
async fn load_qr_code(&self) -> bool
Try to load the QR Code.
Return true if it was successfully loaded, false otherwise.
Trait Implementations§
Source§impl Default for IdentityVerification
impl Default for IdentityVerification
Source§fn default() -> IdentityVerification
fn default() -> IdentityVerification
Source§impl DerivedObjectProperties for IdentityVerification
impl DerivedObjectProperties for IdentityVerification
Source§fn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
Source§fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
ObjectImpl but auto-generated by the Properties macro
to allow handling more complex use-cases.Source§fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
ObjectImpl but auto-generated by the Properties macro
to allow handling more complex use-cases.Source§impl ObjectImpl for IdentityVerification
impl ObjectImpl for IdentityVerification
Source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Source§fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
Source§fn constructed(&self)
fn constructed(&self)
Source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
self.notify("property").fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Source§impl ObjectSubclass for IdentityVerification
impl ObjectSubclass for IdentityVerification
Source§type ParentType = Object
type ParentType = Object
Source§type Interfaces = ()
type Interfaces = ()
Source§type Class = ClassStruct<IdentityVerification>
type Class = ClassStruct<IdentityVerification>
Source§type Instance = InstanceStruct<IdentityVerification>
type Instance = InstanceStruct<IdentityVerification>
Source§type Type = IdentityVerification
type Type = IdentityVerification
wrapper!Source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
Source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
Auto Trait Implementations§
impl !Freeze for IdentityVerification
impl !RefUnwindSafe for IdentityVerification
impl !Send for IdentityVerification
impl !Sync for IdentityVerification
impl Unpin for IdentityVerification
impl UnsafeUnpin for IdentityVerification
impl !UnwindSafe for IdentityVerification
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
Source§fn parent_constructed(&self)
fn parent_constructed(&self)
glib::Object::constructed().Source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
glib::Object::notify().Source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
glib::Object::dispatch_properties_changed().Source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
Source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
Source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
self.