pub struct NamedClientConfig {
pub base_url: Option<String>,
pub timeout: Option<Duration>,
pub retries: Option<u32>,
pub max_response_size: Option<usize>,
pub deny_private_networks: Option<bool>,
pub bearer_env: Option<String>,
pub allow_hosts: Vec<String>,
}Expand description
Per-named-client overrides from sova.toml.
Fields§
§base_url: Option<String>§timeout: Option<Duration>§retries: Option<u32>§max_response_size: Option<usize>§deny_private_networks: Option<bool>§bearer_env: Option<String>§allow_hosts: Vec<String>Trait Implementations§
Source§impl Clone for NamedClientConfig
impl Clone for NamedClientConfig
Source§fn clone(&self) -> NamedClientConfig
fn clone(&self) -> NamedClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedClientConfig
impl Debug for NamedClientConfig
Source§impl Default for NamedClientConfig
impl Default for NamedClientConfig
Source§fn default() -> NamedClientConfig
fn default() -> NamedClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NamedClientConfig
impl RefUnwindSafe for NamedClientConfig
impl Send for NamedClientConfig
impl Sync for NamedClientConfig
impl Unpin for NamedClientConfig
impl UnsafeUnpin for NamedClientConfig
impl UnwindSafe for NamedClientConfig
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