pub struct PasskeyAvailability {
pub supported: bool,
pub secure_context: bool,
pub platform_authenticator_available: bool,
pub conditional_ui_available: bool,
pub cross_platform_authenticator_available: bool,
pub reason: Option<String>,
}Expand description
Host support state for passkey operations in the active session.
Fields§
§supported: booltrue when the active host can perform at least one passkey operation.
secure_context: booltrue when the origin or app context satisfies secure-context rules.
platform_authenticator_available: booltrue when a built-in platform authenticator is available.
conditional_ui_available: booltrue when the host can present passkeys as conditional sign-in UI.
cross_platform_authenticator_available: booltrue when roaming authenticators such as hardware security keys may be used.
reason: Option<String>Human-readable explanation when support is unavailable or degraded.
Trait Implementations§
Source§impl Clone for PasskeyAvailability
impl Clone for PasskeyAvailability
Source§fn clone(&self) -> PasskeyAvailability
fn clone(&self) -> PasskeyAvailability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PasskeyAvailability
impl Debug for PasskeyAvailability
Source§impl Default for PasskeyAvailability
impl Default for PasskeyAvailability
Source§fn default() -> PasskeyAvailability
fn default() -> PasskeyAvailability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasskeyAvailability
impl<'de> Deserialize<'de> for PasskeyAvailability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PasskeyAvailability
impl PartialEq for PasskeyAvailability
Source§fn eq(&self, other: &PasskeyAvailability) -> bool
fn eq(&self, other: &PasskeyAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PasskeyAvailability
impl Serialize for PasskeyAvailability
impl Eq for PasskeyAvailability
impl StructuralPartialEq for PasskeyAvailability
Auto Trait Implementations§
impl Freeze for PasskeyAvailability
impl RefUnwindSafe for PasskeyAvailability
impl Send for PasskeyAvailability
impl Sync for PasskeyAvailability
impl Unpin for PasskeyAvailability
impl UnsafeUnpin for PasskeyAvailability
impl UnwindSafe for PasskeyAvailability
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.