pub struct BiometricCapability {
pub biometric_type: BiometricType,
pub available: bool,
pub hardware_present: bool,
pub enrolled: bool,
pub security_level: BiometricSecurityLevel,
pub platform_features: Vec<String>,
}Expand description
Information about available biometric capabilities
Fields§
§biometric_type: BiometricTypeType of biometric supported
available: boolWhether this biometric is currently available
hardware_present: boolWhether biometric hardware is present
enrolled: boolWhether biometric data is enrolled
security_level: BiometricSecurityLevelSecurity level of this biometric
platform_features: Vec<String>Platform-specific capability flags
Implementations§
Source§impl BiometricCapability
Helper functions for common biometric operations
impl BiometricCapability
Helper functions for common biometric operations
Sourcepub fn meets_security_level(
&self,
required_level: BiometricSecurityLevel,
) -> bool
pub fn meets_security_level( &self, required_level: BiometricSecurityLevel, ) -> bool
Check if this biometric meets a minimum security level
Trait Implementations§
Source§impl Clone for BiometricCapability
impl Clone for BiometricCapability
Source§fn clone(&self) -> BiometricCapability
fn clone(&self) -> BiometricCapability
Returns a duplicate of the value. Read more
1.0.0 · 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 BiometricCapability
impl Debug for BiometricCapability
Source§impl<'de> Deserialize<'de> for BiometricCapability
impl<'de> Deserialize<'de> for BiometricCapability
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BiometricCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BiometricCapability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BiometricCapability
impl Serialize for BiometricCapability
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BiometricCapability
impl RefUnwindSafe for BiometricCapability
impl Send for BiometricCapability
impl Sync for BiometricCapability
impl Unpin for BiometricCapability
impl UnsafeUnpin for BiometricCapability
impl UnwindSafe for BiometricCapability
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