pub struct SystemProxySettings {
pub source: String,
pub http_proxy: Option<String>,
pub https_proxy: Option<String>,
pub socks_proxy: Option<String>,
pub no_proxy: Option<String>,
pub raw: HashMap<String, String>,
}Expand description
System proxy settings read from the platform.
Fields§
§source: StringSource description (e.g., “environment”, “macos:networksetup:*Wi-Fi”).
http_proxy: Option<String>HTTP proxy address (e.g., “http://proxy:8080”).
https_proxy: Option<String>HTTPS proxy address.
socks_proxy: Option<String>SOCKS proxy address.
no_proxy: Option<String>No-proxy/bypass list.
raw: HashMap<String, String>Raw key-value pairs from the source.
Trait Implementations§
Source§impl Clone for SystemProxySettings
impl Clone for SystemProxySettings
Source§fn clone(&self) -> SystemProxySettings
fn clone(&self) -> SystemProxySettings
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 SystemProxySettings
impl Debug for SystemProxySettings
Source§impl<'de> Deserialize<'de> for SystemProxySettings
impl<'de> Deserialize<'de> for SystemProxySettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SystemProxySettings
impl Display for SystemProxySettings
impl Eq for SystemProxySettings
Source§impl PartialEq for SystemProxySettings
impl PartialEq for SystemProxySettings
Source§impl Serialize for SystemProxySettings
impl Serialize for SystemProxySettings
impl StructuralPartialEq for SystemProxySettings
Auto Trait Implementations§
impl Freeze for SystemProxySettings
impl RefUnwindSafe for SystemProxySettings
impl Send for SystemProxySettings
impl Sync for SystemProxySettings
impl Unpin for SystemProxySettings
impl UnsafeUnpin for SystemProxySettings
impl UnwindSafe for SystemProxySettings
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