bitwarden_api_api/models/
authenticator_selection.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthenticatorSelection {
#[serde(
rename = "authenticatorAttachment",
skip_serializing_if = "Option::is_none"
)]
pub authenticator_attachment: Option<models::AuthenticatorAttachment>,
#[serde(rename = "requireResidentKey", skip_serializing_if = "Option::is_none")]
pub require_resident_key: Option<bool>,
#[serde(rename = "userVerification", skip_serializing_if = "Option::is_none")]
pub user_verification: Option<models::UserVerificationRequirement>,
}
impl AuthenticatorSelection {
pub fn new() -> AuthenticatorSelection {
AuthenticatorSelection {
authenticator_attachment: None,
require_resident_key: None,
user_verification: None,
}
}
}