pub struct ClientBuilder<S: Scope = Root> { /* private fields */ }
Implementations§
Source§impl<S: Scope> ClientBuilder<S>
impl<S: Scope> ClientBuilder<S>
pub fn new(url: Url) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn credentials( self, cert: Vec<CertificateDer<'static>>, key: PrivateKeyDer<'static>, ) -> Self
pub fn roots(self, roots: RootCertStore) -> Self
pub fn token(self, token: impl Into<String>) -> Self
pub fn build_scoped(self) -> Result<Client<S>>
Trait Implementations§
Source§impl<S: Scope> Clone for ClientBuilder<S>
impl<S: Scope> Clone for ClientBuilder<S>
Auto Trait Implementations§
impl<S> Freeze for ClientBuilder<S>
impl<S> RefUnwindSafe for ClientBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for ClientBuilder<S>where
S: Send,
impl<S> Sync for ClientBuilder<S>where
S: Sync,
impl<S> Unpin for ClientBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for ClientBuilder<S>where
S: UnwindSafe,
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