diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-19 05:10:23 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-19 05:10:23 -0400 |
commit | 988296d6c9e053d632ee5610ba3432a02776b132 (patch) | |
tree | 5b5e1318e3d72b6ff21782436b17793ca2d74197 /src/db.rs | |
parent | fe359afea6f2d3e0138af7773469914db9a1da7a (diff) | |
download | rbw-988296d6c9e053d632ee5610ba3432a02776b132.tar.gz rbw-988296d6c9e053d632ee5610ba3432a02776b132.zip |
track password history
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -12,6 +12,15 @@ pub struct Entry { pub username: Option<String>, pub password: Option<String>, pub notes: Option<String>, + pub history: Vec<HistoryEntry>, +} + +#[derive( + serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq, +)] +pub struct HistoryEntry { + pub last_used_date: String, + pub password: String, } #[derive(serde::Serialize, serde::Deserialize, Default, Debug)] |