diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-25 03:08:53 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-25 03:08:53 -0400 |
commit | c5d01a97ae4fda0871c8fd49777be325376ba5df (patch) | |
tree | d6417b2f4fe7ec5c84a3ea7d31daee7e9b5060f5 /src/db.rs | |
parent | c08a44b7cb903a448ea7815496703f1a39fbbd1f (diff) | |
download | rbw-c5d01a97ae4fda0871c8fd49777be325376ba5df.tar.gz rbw-c5d01a97ae4fda0871c8fd49777be325376ba5df.zip |
add totp, uris, and custom fields to --full output
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, |