diff --git a/src/edge_storage.rs b/src/edge_storage.rs index 6dac926..da14eb1 100644 --- a/src/edge_storage.rs +++ b/src/edge_storage.rs @@ -11,6 +11,7 @@ use serde::Deserialize; use url::Url; /// Endpoints for Edge Storage API +#[derive(Debug, Clone, PartialEq, Eq)] pub enum Endpoint { /// Uses https://storage.bunnycdn.com as endpoint Frankfurt, @@ -54,7 +55,7 @@ impl TryInto for Endpoint { } /// File information returned by list -#[derive(Deserialize, Debug)] +#[derive(Deserialize, Debug, Clone)] #[serde(rename_all = "PascalCase")] pub struct ListFile { /// ?? @@ -90,6 +91,7 @@ pub struct ListFile { } /// Edge Storage API for bunny +#[derive(Debug, Clone)] pub struct Storage { pub(crate) url: Url, pub(crate) reqwest: Arc, diff --git a/src/lib.rs b/src/lib.rs index e545ba9..bd1e383 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,6 +31,7 @@ pub mod edge_storage; pub mod error; /// API Client for bunny +#[derive(Debug, Clone)] pub struct Client { /// Used to interact with the Edge Storage API pub storage: edge_storage::Storage,