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

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

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]

Formats the value using the given formatter. Read more

impl Clone for ContainerToWiderWorld
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ContainerToWiderWorld
[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 ContainerToWiderWorld
[src]

impl Hash for ContainerToWiderWorld
[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