Make API top level structure implement Clone, related to #295

This commit is contained in:
Sebastian Thiel
2021-08-25 07:56:28 +08:00
parent a22c18725c
commit 32a6d876a6

View File

@@ -47,6 +47,7 @@ ${lib.scope_enum()}
<%block filter="rust_doc_comment">\
${lib.hub_usage_example(c)}\
</%block>
#[derive(Clone)]
pub struct ${hub_type}${ht_params} {
client: hyper::Client<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>, hyper::body::Body>,
auth: oauth2::authenticator::Authenticator<hyper_rustls::HttpsConnector<hyper::client::connect::HttpConnector>>,