aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index 54f8179..9a02598 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -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)]