aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index c695577..d519f00 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -13,6 +13,7 @@ pub struct Entry {
pub folder_id: Option<String>,
pub name: String,
pub data: EntryData,
+ pub fields: Vec<Field>,
pub notes: Option<String>,
pub history: Vec<HistoryEntry>,
}
@@ -24,6 +25,7 @@ pub enum EntryData {
Login {
username: Option<String>,
password: Option<String>,
+ totp: Option<String>,
uris: Vec<String>,
},
Card {
@@ -59,6 +61,14 @@ pub enum EntryData {
#[derive(
serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq,
)]
+pub struct Field {
+ pub name: Option<String>,
+ pub value: Option<String>,
+}
+
+#[derive(
+ serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq,
+)]
pub struct HistoryEntry {
pub last_used_date: String,
pub password: String,