Struct dfw::types::ContainerToHost [−][src]
pub struct ContainerToHost { pub default_policy: String, pub rules: Option<Vec<ContainerToHostRule>>, }
The container-to-host section, defining how containers can communicate with the host.
Fields
default_policy: String
The default_policy
defines the default for when there is not a specific rule.
rules: Option<Vec<ContainerToHostRule>>
An optional list of rules, see
ContainerToHostRule
.
Example
The easiest way to define the rules is using TOMLs arrays of tables:
[[container_to_host.rules]]
# first rule here
[[container_to_host.rules]]
# second rule here
Trait Implementations
impl Debug for ContainerToHost
[src]
impl Debug for ContainerToHost
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 ContainerToHost
[src]
impl Clone for ContainerToHost
fn clone(&self) -> ContainerToHost
[src]
fn clone(&self) -> ContainerToHost
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 ContainerToHost
[src]
impl PartialEq for ContainerToHost
fn eq(&self, other: &ContainerToHost) -> bool
[src]
fn eq(&self, other: &ContainerToHost) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ContainerToHost) -> bool
[src]
fn ne(&self, other: &ContainerToHost) -> bool
This method tests for !=
.
impl Eq for ContainerToHost
[src]
impl Eq for ContainerToHost
impl Hash for ContainerToHost
[src]
impl Hash for ContainerToHost
Auto Trait Implementations
impl Send for ContainerToHost
impl Send for ContainerToHost
impl Sync for ContainerToHost
impl Sync for ContainerToHost