pub struct Status {
pub is_available: bool,
pub biometry_type: BiometryType,
pub error: Option<String>,
pub error_code: Option<String>,
}Expand description
The result of Biometric::status, describing whether biometric
authentication can currently be used.
Fields§
§is_available: boolWhether the device can currently authenticate using biometrics.
biometry_type: BiometryTypeThe kind of biometry hardware detected on the device, even when Self::is_available is false.
error: Option<String>A human-readable reason why biometric authentication is unavailable. Only set when
Self::is_available is false.
error_code: Option<String>A platform-specific error code describing why biometric authentication is unavailable.
Only set when Self::is_available is false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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