diff --git a/koucha/src/lib.rs b/koucha/src/lib.rs index a20a9dc..3158657 100644 --- a/koucha/src/lib.rs +++ b/koucha/src/lib.rs @@ -1,6 +1,6 @@ use std::error::Error; -type Result = std::result::Result>; +pub type Result = std::result::Result>; pub mod db; pub mod fetch; @@ -9,7 +9,9 @@ pub mod score; #[cfg(test)] pub mod test_utils; +#[derive(Clone)] pub struct AdapterPool(sqlx::SqlitePool); +#[derive(Clone)] pub struct AdapterClient(reqwest::Client); pub struct AdapterBuilder { @@ -38,6 +40,7 @@ impl AdapterBuilder { } } +#[derive(Clone)] pub struct Adapter { db: AdapterPool, client: AdapterClient,