pub struct NetworkPolicyToml {
pub default: String,
pub allow: Vec<String>,
pub deny: Vec<String>,
pub proxy: Vec<String>,
pub audit: bool,
}Expand description
On-disk schema for the [network] table (#135). See config.example.toml
for documentation.
Fields§
§default: StringDecision for hosts that are not in allow or deny. One of
"allow" | "deny" | "prompt". Defaults to "prompt".
allow: Vec<String>Hosts that are always allowed. Subdomain rules: a leading dot
(.example.com) matches subdomains but not the apex.
deny: Vec<String>Hosts that are always denied. Deny entries win over allow entries.
proxy: Vec<String>Hostnames whose DNS may resolve to fake-IP/private proxy ranges in an explicitly trusted proxy setup. Literal IP URLs remain blocked.
audit: boolWhether to record one audit-log line per outbound network call.
Trait Implementations§
Source§impl Clone for NetworkPolicyToml
impl Clone for NetworkPolicyToml
Source§fn clone(&self) -> NetworkPolicyToml
fn clone(&self) -> NetworkPolicyToml
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 NetworkPolicyToml
impl Debug for NetworkPolicyToml
Source§impl Default for NetworkPolicyToml
impl Default for NetworkPolicyToml
Source§impl<'de> Deserialize<'de> for NetworkPolicyToml
impl<'de> Deserialize<'de> for NetworkPolicyToml
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 NetworkPolicyToml
impl RefUnwindSafe for NetworkPolicyToml
impl Send for NetworkPolicyToml
impl Sync for NetworkPolicyToml
impl Unpin for NetworkPolicyToml
impl UnsafeUnpin for NetworkPolicyToml
impl UnwindSafe for NetworkPolicyToml
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