pub struct ClientBuilder { /* private fields */ }Expand description
Builds a Client when the defaults are not enough.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn base(self, base: impl Into<String>) -> Self
pub fn base(self, base: impl Into<String>) -> Self
Where the server listens. Defaults to http://127.0.0.1:3000.
Sourcepub fn api_key(self, api_key: impl Into<String>) -> Self
pub fn api_key(self, api_key: impl Into<String>) -> Self
The token the server requires as soon as it is exposed beyond
loopback. Sent as a bearer header, and never printed by Debug.
Trait Implementations§
Source§impl Debug for ClientBuilder
impl Debug for ClientBuilder
Auto Trait Implementations§
impl Forget for ClientBuilder
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin 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