pub struct SandboxConfigUserPolicyNetwork {
pub allowed_hosts: Option<Vec<String>>,
pub allow_local_network: Option<bool>,
pub allow_outbound: Option<bool>,
pub blocked_hosts: Option<Vec<String>>,
}Expand description
Network rules to merge into the base policy.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§allowed_hosts: Option<Vec<String>>Hosts allowed in addition to the base policy.
allow_local_network: Option<bool>Whether traffic to local/loopback addresses is allowed.
allow_outbound: Option<bool>Whether outbound network traffic is allowed at all.
blocked_hosts: Option<Vec<String>>Hosts explicitly blocked.
Trait Implementations§
Source§impl Clone for SandboxConfigUserPolicyNetwork
impl Clone for SandboxConfigUserPolicyNetwork
Source§fn clone(&self) -> SandboxConfigUserPolicyNetwork
fn clone(&self) -> SandboxConfigUserPolicyNetwork
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 Default for SandboxConfigUserPolicyNetwork
impl Default for SandboxConfigUserPolicyNetwork
Source§fn default() -> SandboxConfigUserPolicyNetwork
fn default() -> SandboxConfigUserPolicyNetwork
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SandboxConfigUserPolicyNetwork
impl<'de> Deserialize<'de> for SandboxConfigUserPolicyNetwork
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 SandboxConfigUserPolicyNetwork
impl RefUnwindSafe for SandboxConfigUserPolicyNetwork
impl Send for SandboxConfigUserPolicyNetwork
impl Sync for SandboxConfigUserPolicyNetwork
impl Unpin for SandboxConfigUserPolicyNetwork
impl UnsafeUnpin for SandboxConfigUserPolicyNetwork
impl UnwindSafe for SandboxConfigUserPolicyNetwork
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