mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
feat(biometrics): Improve Rust API docs (#1532)
* Improve Rust API docs * Add changes file
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"biometric": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Provide more context to the `AuthOptions` in the Biometric Plugin for Rust API documentation.
|
||||||
@@ -7,16 +7,17 @@ use serde::{Deserialize, Serialize};
|
|||||||
#[derive(Debug, Default, Serialize)]
|
#[derive(Debug, Default, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct AuthOptions {
|
pub struct AuthOptions {
|
||||||
|
/// Enables authentication using the device's password. This feature is available on both Android and iOS.
|
||||||
pub allow_device_credential: bool,
|
pub allow_device_credential: bool,
|
||||||
/// iOS only.
|
/// Label for the Cancel button. This feature is available on both Android and iOS.
|
||||||
pub fallback_title: Option<String>,
|
|
||||||
/// iOS only.
|
|
||||||
pub cancel_title: Option<String>,
|
pub cancel_title: Option<String>,
|
||||||
/// Android only.
|
/// 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>,
|
pub title: Option<String>,
|
||||||
/// Android only.
|
/// SubTitle providing contextual information of biometric verification. This feature is available Android only.
|
||||||
pub subtitle: Option<String>,
|
pub subtitle: Option<String>,
|
||||||
/// Android only.
|
/// 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 confirmation_required: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user