pub struct Builder { /* private fields */ }Expand description
Builder for Client.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_client(self, client: Client<HttpsConnector<HttpConnector>>) -> Self
pub fn with_client(self, client: Client<HttpsConnector<HttpConnector>>) -> Self
Set Hyper client.
By default this library will instantiate a new HttpsConnector. It will use hyper_rustls or hyper_tls depending on selected library features.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set request timeout.
Default is 30 seconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more