pub struct ApiClientBuilder { /* private fields */ }Expand description
Builder for ApiClient.
Implementations§
Source§impl ApiClientBuilder
impl ApiClientBuilder
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Override the user agent.
Sourcepub const fn max_retries(self, retries: usize) -> Self
pub const fn max_retries(self, retries: usize) -> Self
Override retry attempts.
Sourcepub const fn retry_base_delay(self, delay: Duration) -> Self
pub const fn retry_base_delay(self, delay: Duration) -> Self
Override retry base delay.
Auto Trait Implementations§
impl Freeze for ApiClientBuilder
impl RefUnwindSafe for ApiClientBuilder
impl Send for ApiClientBuilder
impl Sync for ApiClientBuilder
impl Unpin for ApiClientBuilder
impl UnsafeUnpin 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