pub struct Config {
pub base_url: String,
pub token: Option<String>,
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub max_attempts: u32,
pub user_agent: String,
pub ca_pem: Option<Vec<u8>>,
}Fields§
§base_url: StringAddress of the client API (http://host:port or https://...).
token: Option<String>§connect_timeout: Duration§request_timeout: Duration§max_attempts: u32Attempts, counting the first.
user_agent: String§ca_pem: Option<Vec<u8>>CA certificate (PEM) to trust, besides the system roots.
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 UnsafeUnpin 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