bitwarden_api_api/models/
cipher_password_history_model.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 CipherPasswordHistoryModel {
17    #[serde(rename = "password")]
18    pub password: String,
19    #[serde(rename = "lastUsedDate")]
20    pub last_used_date: String,
21}
22
23impl CipherPasswordHistoryModel {
24    pub fn new(password: String, last_used_date: String) -> CipherPasswordHistoryModel {
25        CipherPasswordHistoryModel {
26            password,
27            last_used_date,
28        }
29    }
30}