diff --git a/src/kv.rs b/src/kv.rs index 0aa309a..9978dc7 100644 --- a/src/kv.rs +++ b/src/kv.rs @@ -54,7 +54,7 @@ pub enum KvError { /// Kv helper struct for a db. /// Opening or creating a kv will give you a Result. /// You can call it's impl functions to interact with it. -#[derive(Debug, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct Kv { pub package_id: PackageId, pub db: String, diff --git a/src/sqlite.rs b/src/sqlite.rs index f87e120..b08db9d 100644 --- a/src/sqlite.rs +++ b/src/sqlite.rs @@ -76,6 +76,7 @@ pub enum SqliteError { /// Sqlite helper struct for a db. /// Opening or creating a db will give you a Result. /// You can call it's impl functions to interact with it. +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct Sqlite { pub package_id: PackageId, pub db: String,