Skip to main content

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        alias = "AuthenticatorAttachment",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub authenticator_attachment: Option<models::AuthenticatorAttachment>,
23    #[serde(
24        rename = "residentKey",
25        alias = "ResidentKey",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub resident_key: Option<models::ResidentKeyRequirement>,
29    #[serde(
30        rename = "requireResidentKey",
31        alias = "RequireResidentKey",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub require_resident_key: Option<bool>,
35    #[serde(
36        rename = "userVerification",
37        alias = "UserVerification",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub user_verification: Option<models::UserVerificationRequirement>,
41}
42
43impl AuthenticatorSelection {
44    pub fn new() -> AuthenticatorSelection {
45        AuthenticatorSelection {
46            authenticator_attachment: None,
47            resident_key: None,
48            require_resident_key: None,
49            user_verification: None,
50        }
51    }
52}