pub struct ClientConfig {
pub host: String,
pub port: u16,
pub timeout: Duration,
pub verify_ssl: bool,
pub scheme: String,
pub api_key: Option<String>,
pub max_retries: u32,
pub retry_backoff: f64,
pub pool_size: usize,
}Fields§
§host: String§port: u16§timeout: Duration§verify_ssl: bool§scheme: String§api_key: Option<String>§max_retries: u32§retry_backoff: f64§pool_size: usizeImplementations§
Source§impl ClientConfig
impl ClientConfig
pub fn new() -> Self
pub fn host(self, host: impl Into<String>) -> Self
pub fn port(self, port: u16) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn scheme(self, scheme: impl Into<String>) -> Self
pub fn api_key(self, key: impl Into<String>) -> Self
pub fn base_url(&self) -> String
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin 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