pub struct IdentityVerification {Show 18 fields
pub request: OnceCell<BoxedVerificationRequest>,
pub request_changes_abort_handle: RefCell<Option<AbortHandle>>,
pub verification: RefCell<Option<Verification>>,
pub verification_changes_abort_handle: RefCell<Option<AbortHandle>>,
pub user: BoundConstructOnlyObject<User>,
pub room: WeakRef<Room>,
membership_handler: RefCell<Option<SignalHandlerId>>,
pub state: Cell<VerificationState>,
pub was_accepted: Cell<bool>,
is_finished: PhantomData<bool>,
pub supported_methods: RefCell<Vec<VerificationMethod>>,
flow_id: PhantomData<String>,
pub received_time: OnceCell<DateTime>,
pub received_timeout_source: RefCell<Option<SourceId>>,
display_name: PhantomData<String>,
pub qr_code: RefCell<Option<QrCode>>,
pub qrcode_scanner: RefCell<Option<QrCodeScanner>>,
pub was_viewed: Cell<bool>,
}
Fields§
§request: OnceCell<BoxedVerificationRequest>
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
Sourcefn set_request(&self, request: BoxedVerificationRequest)
fn set_request(&self, request: BoxedVerificationRequest)
Set the SDK’s verification request.
Sourcepub fn set_state(&self, state: VerificationState)
pub 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 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.
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 !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 instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
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
.