Struct fractal::session::model::verification::identity_verification::imp::IdentityVerification
source · 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 camera_paintable: RefCell<Option<Paintable>>,
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.
camera_paintable: RefCell<Option<Paintable>>
The camera paintable, 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
§type ParentType = Object
type ParentType = Object
§type Interfaces = ()
type Interfaces = ()
§type Class = ClassStruct<IdentityVerification>
type Class = ClassStruct<IdentityVerification>
§type Instance = InstanceStruct<IdentityVerification>
type Instance = InstanceStruct<IdentityVerification>
§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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
source§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
.