Struct dfw::types::ContainerToWiderWorld [−][src]
pub struct ContainerToWiderWorld { pub default_policy: String, pub rules: Option<Vec<ContainerToWiderWorldRule>>, }
The container-to-wider-world section, defining how containers can communicate with the wider world.
Fields
default_policy: String
The default_policy
defines the default for when there is not a specific rule.
rules: Option<Vec<ContainerToWiderWorldRule>>
An optional list of rules, see
ContainerToWiderWorldRule
.
Example
The easiest way to define the rules is using TOMLs arrays of tables:
[[container_to_wider_world.rules]]
# first rule here
[[container_to_wider_world.rules]]
# second rule here
Trait Implementations
impl Debug for ContainerToWiderWorld
[src]
impl Debug for ContainerToWiderWorld
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ContainerToWiderWorld
[src]
impl Clone for ContainerToWiderWorld
fn clone(&self) -> ContainerToWiderWorld
[src]
fn clone(&self) -> ContainerToWiderWorld
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ContainerToWiderWorld
[src]
impl PartialEq for ContainerToWiderWorld
fn eq(&self, other: &ContainerToWiderWorld) -> bool
[src]
fn eq(&self, other: &ContainerToWiderWorld) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ContainerToWiderWorld) -> bool
[src]
fn ne(&self, other: &ContainerToWiderWorld) -> bool
This method tests for !=
.
impl Eq for ContainerToWiderWorld
[src]
impl Eq for ContainerToWiderWorld
impl Hash for ContainerToWiderWorld
[src]
impl Hash for ContainerToWiderWorld
Auto Trait Implementations
impl Send for ContainerToWiderWorld
impl Send for ContainerToWiderWorld
impl Sync for ContainerToWiderWorld
impl Sync for ContainerToWiderWorld