bitwarden_api_api/models/
cipher_password_history_model.rs1use 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}