pub struct BiometricConfig {
pub biometric_type: BiometricType,
pub liveness_detection: bool,
pub allow_fallback: bool,
pub capture_timeout_ms: u32,
pub max_retry_attempts: u32,
pub minimum_quality: f32,
}Expand description
Configuration for biometric enrollment and verification
Fields§
§biometric_type: BiometricTypeBiometric type to configure
liveness_detection: boolRequire liveness detection during verification
allow_fallback: boolAllow fallback to alternative authentication if biometric fails
capture_timeout_ms: u32Timeout for biometric capture (milliseconds)
max_retry_attempts: u32Number of retry attempts allowed
minimum_quality: f32Minimum quality threshold (0.0 to 1.0)
Implementations§
Source§impl BiometricConfig
impl BiometricConfig
Sourcepub fn high_security(biometric_type: BiometricType) -> BiometricConfig
pub fn high_security(biometric_type: BiometricType) -> BiometricConfig
Create a high-security configuration for the given biometric type
Sourcepub fn balanced(biometric_type: BiometricType) -> BiometricConfig
pub fn balanced(biometric_type: BiometricType) -> BiometricConfig
Create a balanced configuration for the given biometric type
Sourcepub fn user_friendly(biometric_type: BiometricType) -> BiometricConfig
pub fn user_friendly(biometric_type: BiometricType) -> BiometricConfig
Create a user-friendly configuration for the given biometric type
Trait Implementations§
Source§impl Clone for BiometricConfig
impl Clone for BiometricConfig
Source§fn clone(&self) -> BiometricConfig
fn clone(&self) -> BiometricConfig
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 BiometricConfig
impl Debug for BiometricConfig
Source§impl<'de> Deserialize<'de> for BiometricConfig
impl<'de> Deserialize<'de> for BiometricConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BiometricConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BiometricConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BiometricConfig
impl Serialize for BiometricConfig
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 BiometricConfig
impl RefUnwindSafe for BiometricConfig
impl Send for BiometricConfig
impl Sync for BiometricConfig
impl Unpin for BiometricConfig
impl UnsafeUnpin for BiometricConfig
impl UnwindSafe for BiometricConfig
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