pub struct ApiClientBuilder { /* private fields */ }Implementations§
Source§impl ApiClientBuilder
impl ApiClientBuilder
pub fn new(base_url: Url) -> Self
Sourcepub fn user_agent(self, user_agent: Option<impl Into<String>>) -> Self
pub fn user_agent(self, user_agent: Option<impl Into<String>>) -> Self
Override the user agent for the ApiClient.
Sourcepub fn bearer_token(self, bearer_token: Option<impl Into<String>>) -> Self
pub fn bearer_token(self, bearer_token: Option<impl Into<String>>) -> Self
Set an authentication token for the ApiClient.
pub fn build_client(&self) -> Result<Client>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiClientBuilder
impl RefUnwindSafe for ApiClientBuilder
impl Send for ApiClientBuilder
impl Sync for ApiClientBuilder
impl Unpin for ApiClientBuilder
impl UnwindSafe for ApiClientBuilder
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