pub struct ClientConfig {
pub host: String,
pub port: u16,
pub base_path: String,
pub tls: bool,
pub accept_invalid_certs: bool,
pub timeout_secs: u64,
pub proxy: Option<String>,
pub proxy_username: Option<String>,
pub proxy_password: Option<String>,
}Fields§
§host: String§port: u16§base_path: String§tls: bool§accept_invalid_certs: bool§timeout_secs: u64§proxy: Option<String>Optional outbound proxy URL. Supports http://, https://,
socks5:// and socks5h:// schemes. Auth may be embedded
(http://user:pass@host:port) or supplied separately via
ClientConfigBuilder::proxy_auth.
proxy_username: Option<String>§proxy_password: Option<String>Implementations§
Source§impl ClientConfig
impl ClientConfig
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 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