pub struct ClientBuilder { /* private fields */ }
Expand description
Builder for Client
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn new() -> Self
pub fn app_id<S: Into<String>>(self, app_id: S) -> Self
pub fn app_secret<S: Into<String>>(self, app_secret: S) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn user_agent<S: Into<String>>(self, user_agent: S) -> Self
pub fn build(self) -> Result<Client>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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