aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index cc9319e..ab742ea 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -106,7 +106,6 @@ impl<'de> serde::Deserialize<'de> for Uri {
#[derive(
serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq,
)]
-#[allow(clippy::large_enum_variant)]
pub enum EntryData {
Login {
username: Option<String>,
@@ -148,8 +147,10 @@ pub enum EntryData {
serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq,
)]
pub struct Field {
+ pub ty: crate::api::FieldType,
pub name: Option<String>,
pub value: Option<String>,
+ pub linked_id: Option<crate::api::LinkedIdType>,
}
#[derive(
@@ -165,7 +166,10 @@ pub struct Db {
pub access_token: Option<String>,
pub refresh_token: Option<String>,
+ pub kdf: Option<crate::api::KdfType>,
pub iterations: Option<u32>,
+ pub memory: Option<u32>,
+ pub parallelism: Option<u32>,
pub protected_key: Option<String>,
pub protected_private_key: Option<String>,
pub protected_org_keys: std::collections::HashMap<String, String>,
@@ -294,6 +298,7 @@ impl Db {
self.access_token.is_none()
|| self.refresh_token.is_none()
|| self.iterations.is_none()
+ || self.kdf.is_none()
|| self.protected_key.is_none()
}
}