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

The default_policy defines the default for when there is not a specific rule.

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]

Formats the value using the given formatter. Read more

impl Clone for ContainerToHost
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ContainerToHost
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ContainerToHost
[src]

impl Hash for ContainerToHost
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations