bitwarden_api_api/models/
authenticator_selection.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticatorSelection {
17    #[serde(
18        rename = "authenticatorAttachment",
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub authenticator_attachment: Option<models::AuthenticatorAttachment>,
22    #[serde(rename = "requireResidentKey", skip_serializing_if = "Option::is_none")]
23    pub require_resident_key: Option<bool>,
24    #[serde(rename = "userVerification", skip_serializing_if = "Option::is_none")]
25    pub user_verification: Option<models::UserVerificationRequirement>,
26}
27
28impl AuthenticatorSelection {
29    pub fn new() -> AuthenticatorSelection {
30        AuthenticatorSelection {
31            authenticator_attachment: None,
32            require_resident_key: None,
33            user_verification: None,
34        }
35    }
36}