pub struct MochowClientBuilder { /* private fields */ }Expand description
Builder for MochowClient.
Implementations§
Source§impl MochowClientBuilder
impl MochowClientBuilder
Sourcepub fn credential<VALUE: Into<Credentials>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn credential<VALUE: Into<Credentials>>( &mut self, value: VALUE, ) -> &mut Self
with important credential information
Sourcepub fn http_client<VALUE: Into<ClientWithMiddleware>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn http_client<VALUE: Into<ClientWithMiddleware>>( &mut self, value: VALUE, ) -> &mut Self
underlying http client
pub fn configuration<VALUE: Into<ClientConfiguration>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<MochowClient, MochowClientBuilderError>
pub fn build(&self) -> Result<MochowClient, MochowClientBuilderError>
Trait Implementations§
Source§impl Clone for MochowClientBuilder
impl Clone for MochowClientBuilder
Source§fn clone(&self) -> MochowClientBuilder
fn clone(&self) -> MochowClientBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MochowClientBuilder
impl !RefUnwindSafe for MochowClientBuilder
impl Send for MochowClientBuilder
impl Sync for MochowClientBuilder
impl Unpin for MochowClientBuilder
impl !UnwindSafe for MochowClientBuilder
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