pub struct ManagerClientBuilder { /* private fields */ }Expand description
Builder for ManagerClient.
Implementations§
Source§impl ManagerClientBuilder
impl ManagerClientBuilder
Sourcepub fn base_url(self, url: impl Into<String>) -> Self
pub fn base_url(self, url: impl Into<String>) -> Self
Override the base URL (e.g. a per-customer host). Defaults to DEFAULT_BASE_URL.
Sourcepub fn retry(self, policy: RetryPolicy) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
Override the retry policy. Defaults to RetryPolicy::default.
Sourcepub async fn connect(self) -> Result<ManagerClient, ManagerError>
pub async fn connect(self) -> Result<ManagerClient, ManagerError>
Build the client, resolving a grant into a bearer token if needed (kept fresh from then
on — see Auth).
Auto Trait Implementations§
impl Freeze for ManagerClientBuilder
impl RefUnwindSafe for ManagerClientBuilder
impl Send for ManagerClientBuilder
impl Sync for ManagerClientBuilder
impl Unpin for ManagerClientBuilder
impl UnsafeUnpin for ManagerClientBuilder
impl UnwindSafe for ManagerClientBuilder
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