Struct fiberplane_api_client::builder::ApiClientBuilder
source · 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 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