pub struct Config {Show 13 fields
pub base_url: String,
pub api_key: String,
pub timeout: Duration,
pub retries: u32,
pub backoff: BackoffConfig,
pub cache_enabled: bool,
pub cache_size: usize,
pub cache_ttl: Duration,
pub max_connections: usize,
pub insecure: bool,
pub client_cert: Option<PathBuf>,
pub client_key: Option<PathBuf>,
pub ca_cert: Option<PathBuf>,
}Fields§
§base_url: String§api_key: String§timeout: Duration§retries: u32§backoff: BackoffConfig§cache_enabled: bool§cache_size: usize§cache_ttl: Duration§max_connections: usize§insecure: bool§client_cert: Option<PathBuf>§client_key: Option<PathBuf>§ca_cert: Option<PathBuf>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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