pub struct ClientBuilder { /* private fields */ }Expand description
Builder for EdgeQuakeClient.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
pub fn base_url(self, url: impl Into<String>) -> Self
pub fn api_key(self, key: impl Into<String>) -> Self
pub fn bearer_token(self, token: impl Into<String>) -> Self
pub fn tenant_id(self, id: impl Into<String>) -> Self
pub fn user_id(self, id: impl Into<String>) -> Self
pub fn workspace_id(self, id: impl Into<String>) -> Self
pub fn timeout(self, d: Duration) -> Self
pub fn connect_timeout(self, d: Duration) -> Self
pub fn max_retries(self, n: u32) -> Self
pub fn user_agent(self, ua: impl Into<String>) -> Self
Sourcepub fn build(self) -> Result<EdgeQuakeClient>
pub fn build(self) -> Result<EdgeQuakeClient>
Build the client. Fails if the base URL is invalid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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