pub struct MesaClientBuilder { /* private fields */ }Expand description
Builder for configuring and constructing a MesaClient.
Implementations§
Source§impl MesaClientBuilder
impl MesaClientBuilder
Sourcepub fn with_base_path(self, base_path: impl Into<String>) -> Self
pub fn with_base_path(self, base_path: impl Into<String>) -> Self
Attach a non-default base URL for the API (e.g. for testing against a staging environment).
Sourcepub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
Attach a custom User-Agent header to all requests.
Sourcepub fn with_client(self, client: ClientWithMiddleware) -> Self
pub fn with_client(self, client: ClientWithMiddleware) -> Self
Attach a custom HTTP client (e.g. with additional middleware or custom timeout settings).
Sourcepub fn with_api_key(self, api_key: impl Into<String>) -> Self
pub fn with_api_key(self, api_key: impl Into<String>) -> Self
Attach an API key for authentication.
Sourcepub fn build(self) -> MesaClient
pub fn build(self) -> MesaClient
Finalize the builder and construct a MesaClient.
Trait Implementations§
Source§impl Clone for MesaClientBuilder
impl Clone for MesaClientBuilder
Source§fn clone(&self) -> MesaClientBuilder
fn clone(&self) -> MesaClientBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MesaClientBuilder
impl Debug for MesaClientBuilder
Source§impl Default for MesaClientBuilder
impl Default for MesaClientBuilder
Source§fn default() -> MesaClientBuilder
fn default() -> MesaClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MesaClientBuilder
impl !RefUnwindSafe for MesaClientBuilder
impl Send for MesaClientBuilder
impl Sync for MesaClientBuilder
impl Unpin for MesaClientBuilder
impl !UnwindSafe for MesaClientBuilder
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