pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub fn with_environment(self, env: Environment) -> Self
pub fn with_environment(self, env: Environment) -> Self
Override the default URL environment
Sourcepub fn with_base_url(self, base_url: &str) -> Self
pub fn with_base_url(self, base_url: &str) -> Self
Override the default URL with a custom base URL
Sourcepub fn with_client(self, client: Client) -> Self
pub fn with_client(self, client: Client) -> Self
Override the default underlying reqwest client
pub fn with_bearer_auth(self, token: &str) -> Self
pub fn v1(&mut self) -> V1Client<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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