pub struct ClientConfig {
pub base_url: String,
pub api_key: String,
pub timeout: Duration,
pub max_retries: u32,
pub initial_backoff: Duration,
pub max_backoff: Duration,
pub default_headers: HeaderMap,
}Expand description
Configuration for a MesaClient.
Typically constructed via ClientBuilder rather than directly. All fields
have sensible defaults.
Fields§
§base_url: StringBase URL for the Mesa API.
api_key: StringAPI key for authentication.
timeout: DurationRequest timeout (passed to the HTTP backend).
max_retries: u32Maximum number of retry attempts.
initial_backoff: DurationInitial backoff duration for retries.
max_backoff: DurationMaximum backoff duration.
default_headers: HeaderMapDefault headers included in every request.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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