mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-26 07:58:14 +00:00
k2v-client: derive Clone for the K2vClient type
This commit is contained in:
@@ -46,6 +46,7 @@ const PATH_ENCODE_SET: AsciiSet = NON_ALPHANUMERIC
|
|||||||
.remove(b'.')
|
.remove(b'.')
|
||||||
.remove(b'~');
|
.remove(b'~');
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct K2vClientConfig {
|
pub struct K2vClientConfig {
|
||||||
pub endpoint: String,
|
pub endpoint: String,
|
||||||
pub region: String,
|
pub region: String,
|
||||||
@@ -56,6 +57,7 @@ pub struct K2vClientConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Client used to query a K2V server.
|
/// Client used to query a K2V server.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct K2vClient {
|
pub struct K2vClient {
|
||||||
config: K2vClientConfig,
|
config: K2vClientConfig,
|
||||||
user_agent: HeaderValue,
|
user_agent: HeaderValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user