Download packages/tauri-plugins/plugins/biometric/src/models.rs from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/biometric/src/models.rs
- Command line
-
hf download hf://datasets/echodict/readest/packages/tauri-plugins/plugins/biometric/src/models.rs
-
curl -L -o models.rs https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/biometric/src/models.rs
1.6 kB
| // Copyright 2019-2023 Tauri Programme within The Commons Conservancy | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // SPDX-License-Identifier: MIT | |
| use serde::{Deserialize, Serialize}; | |
| pub struct AuthOptions { | |
| /// Enables authentication using the device's password. This feature is available on both Android and iOS. | |
| pub allow_device_credential: bool, | |
| /// Label for the Cancel button. This feature is available on both Android and iOS. | |
| pub cancel_title: Option<String>, | |
| /// Specifies the text displayed on the fallback button if biometric authentication fails. This feature is available iOS only. | |
| pub fallback_title: Option<String>, | |
| /// Title indicating the purpose of biometric verification. This feature is available Android only. | |
| pub title: Option<String>, | |
| /// SubTitle providing contextual information of biometric verification. This feature is available Android only. | |
| pub subtitle: Option<String>, | |
| /// Specifies whether additional user confirmation is required, such as pressing a button after successful biometric authentication. This feature is available Android only. | |
| pub confirmation_required: Option<bool>, | |
| } | |
| pub enum BiometryType { | |
| None = 0, | |
| TouchID = 1, | |
| FaceID = 2, | |
| } | |
| pub struct Status { | |
| pub is_available: bool, | |
| pub biometry_type: BiometryType, | |
| pub error: Option<String>, | |
| pub error_code: Option<String>, | |
| } | |