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, 9 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index 95da739..6e73852 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -3,6 +3,14 @@ use crate::prelude::*;
use std::io::{Read as _, Write as _};
use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _};
+#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
+pub struct Entry {
+ pub name: String,
+ pub username: Option<String>,
+ pub password: Option<String>,
+ pub notes: Option<String>,
+}
+
#[derive(serde::Serialize, serde::Deserialize, Default, Debug)]
pub struct Db {
pub access_token: Option<String>,
@@ -11,7 +19,7 @@ pub struct Db {
pub iterations: Option<u32>,
pub protected_key: Option<String>,
- pub ciphers: Vec<crate::api::Cipher>,
+ pub entries: Vec<Entry>,
}
impl Db {