pub struct AuthOptions {
pub allow_device_credential: bool,
pub cancel_title: Option<String>,
pub data_to_encrypt: Option<String>,
pub data_to_decrypt: Option<String>,
pub fallback_title: Option<String>,
pub title: Option<String>,
pub subtitle: Option<String>,
pub confirmation_required: Option<bool>,
}Expand description
Options for Biometric::authenticate.
Fields§
§allow_device_credential: boolEnables authentication using the device’s password. This feature is available on Android, iOS and macOS.
cancel_title: Option<String>Label for the Cancel button. This feature is available on Android, iOS and macOS.
data_to_encrypt: Option<String>The plain data that must be encrypted after successful biometric authentication. Android only.
data_to_decrypt: Option<String>The encrypted data that must be decrypted after successful biometric authentication. Android only.
fallback_title: Option<String>Specifies the text displayed on the fallback button if biometric authentication fails. This feature is available on iOS and macOS only.
title: Option<String>Title indicating the purpose of biometric verification. This feature is available Android only.
subtitle: Option<String>SubTitle providing contextual information of biometric verification. This feature is available Android only.
confirmation_required: Option<bool>Specifies whether additional user confirmation is required, such as pressing a button after successful biometric authentication. This feature is available Android only.