pub struct CrateClientBuilder { /* private fields */ }
Expand description
Builder for creating a CrateClient with custom configuration
Implementations§
Source§impl CrateClientBuilder
impl CrateClientBuilder
Sourcepub fn user_agent<S: Into<String>>(self, agent: S) -> Self
pub fn user_agent<S: Into<String>>(self, agent: S) -> Self
Set the user agent string
Sourcepub fn build(self) -> Result<CrateClient>
pub fn build(self) -> Result<CrateClient>
Build the CrateClient
Trait Implementations§
Source§impl Debug for CrateClientBuilder
impl Debug for CrateClientBuilder
Auto Trait Implementations§
impl Freeze for CrateClientBuilder
impl RefUnwindSafe for CrateClientBuilder
impl Send for CrateClientBuilder
impl Sync for CrateClientBuilder
impl Unpin for CrateClientBuilder
impl UnwindSafe for CrateClientBuilder
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