1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Bitwarden Internal API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: latest
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CipherLoginModel {
    #[serde(rename = "uri", skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
    #[serde(rename = "uris", skip_serializing_if = "Option::is_none")]
    pub uris: Option<Vec<crate::models::CipherLoginUriModel>>,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    #[serde(
        rename = "passwordRevisionDate",
        skip_serializing_if = "Option::is_none"
    )]
    pub password_revision_date: Option<String>,
    #[serde(rename = "totp", skip_serializing_if = "Option::is_none")]
    pub totp: Option<String>,
    #[serde(rename = "autofillOnPageLoad", skip_serializing_if = "Option::is_none")]
    pub autofill_on_page_load: Option<bool>,
    #[serde(rename = "fido2Credentials", skip_serializing_if = "Option::is_none")]
    pub fido2_credentials: Option<Vec<crate::models::CipherFido2CredentialModel>>,
}

impl CipherLoginModel {
    pub fn new() -> CipherLoginModel {
        CipherLoginModel {
            uri: None,
            uris: None,
            username: None,
            password: None,
            password_revision_date: None,
            totp: None,
            autofill_on_page_load: None,
            fido2_credentials: None,
        }
    }
}