From b3c69bf88d973af04433d450a659ef1581d813e2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 18 Apr 2020 04:06:36 -0400 Subject: stop using the api cipher struct publicly --- src/db.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/db.rs') 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, + pub password: Option, + pub notes: Option, +} + #[derive(serde::Serialize, serde::Deserialize, Default, Debug)] pub struct Db { pub access_token: Option, @@ -11,7 +19,7 @@ pub struct Db { pub iterations: Option, pub protected_key: Option, - pub ciphers: Vec, + pub entries: Vec, } impl Db { -- cgit v1.2.3-54-g00ecf