pub struct ApplyPlan {
pub platform: String,
pub service: Option<String>,
pub http_proxy: Option<String>,
pub https_proxy: Option<String>,
pub socks_proxy: Option<String>,
pub no_proxy: Option<String>,
pub commands: Vec<Command>,
pub previous_settings: Option<SystemProxySettings>,
}Expand description
Plan for applying system proxy settings.
Fields§
§platform: StringPlatform target.
service: Option<String>Network service or scope (e.g., “*Wi-Fi” on macOS).
http_proxy: Option<String>HTTP proxy to set.
https_proxy: Option<String>HTTPS proxy to set.
socks_proxy: Option<String>SOCKS proxy to set.
no_proxy: Option<String>No-proxy/bypass list.
commands: Vec<Command>Commands that would be executed.
previous_settings: Option<SystemProxySettings>Previous settings captured for rollback.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApplyPlan
impl<'de> Deserialize<'de> for ApplyPlan
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
Auto Trait Implementations§
impl Freeze for ApplyPlan
impl RefUnwindSafe for ApplyPlan
impl Send for ApplyPlan
impl Sync for ApplyPlan
impl Unpin for ApplyPlan
impl UnsafeUnpin for ApplyPlan
impl UnwindSafe for ApplyPlan
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