| |
| |
| |
|
|
| use serde::{Deserialize, Serialize}; |
|
|
| #[derive(Debug, Default, Serialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct AuthOptions { |
| |
| pub allow_device_credential: bool, |
| |
| pub cancel_title: Option<String>, |
| |
| pub fallback_title: Option<String>, |
| |
| pub title: Option<String>, |
| |
| pub subtitle: Option<String>, |
| |
| pub confirmation_required: Option<bool>, |
| } |
|
|
| #[derive(Debug, Clone, serde_repr::Deserialize_repr)] |
| #[repr(u8)] |
| pub enum BiometryType { |
| None = 0, |
| TouchID = 1, |
| FaceID = 2, |
| } |
|
|
| #[derive(Debug, Clone, Deserialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct Status { |
| pub is_available: bool, |
| pub biometry_type: BiometryType, |
| pub error: Option<String>, |
| pub error_code: Option<String>, |
| } |
|
|