pub struct NetworkSpec {
pub enabled: bool,
pub interface: Option<Value>,
pub ports: Vec<PublishedPortSpec>,
pub policy: Option<Value>,
pub dns: Option<Value>,
pub tls: Option<Value>,
pub secrets: Option<Value>,
pub max_connections: Option<usize>,
pub trust_host_cas: bool,
}Expand description
Complete network specification for a sandbox.
Common, backend-visible fields are typed directly. Rich local-engine subdocuments such as policy, DNS, TLS, secrets, and interface overrides are carried as JSON so the shared contract can preserve them without depending on the local networking engine crate.
Fields§
§enabled: boolWhether networking is enabled for this sandbox.
interface: Option<Value>Guest interface overrides for the local network engine.
ports: Vec<PublishedPortSpec>Host-to-guest port mappings.
policy: Option<Value>Egress and ingress policy subdocument.
dns: Option<Value>DNS interception and filtering subdocument.
tls: Option<Value>TLS interception subdocument.
secrets: Option<Value>Secret injection subdocument.
max_connections: Option<usize>Max concurrent guest connections.
trust_host_cas: boolWhether to copy trusted host CAs into the guest at boot.
Trait Implementations§
Source§impl Clone for NetworkSpec
impl Clone for NetworkSpec
Source§fn clone(&self) -> NetworkSpec
fn clone(&self) -> NetworkSpec
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 NetworkSpec
impl Debug for NetworkSpec
Source§impl Default for NetworkSpec
impl Default for NetworkSpec
Source§impl<'de> Deserialize<'de> for NetworkSpecwhere
NetworkSpec: Default,
impl<'de> Deserialize<'de> for NetworkSpecwhere
NetworkSpec: Default,
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 NetworkSpec
impl RefUnwindSafe for NetworkSpec
impl Send for NetworkSpec
impl Sync for NetworkSpec
impl Unpin for NetworkSpec
impl UnsafeUnpin for NetworkSpec
impl UnwindSafe for NetworkSpec
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