Struct dfw::types::ContainerToHostRule[][src]

pub struct ContainerToHostRule {
    pub network: String,
    pub src_container: Option<String>,
    pub filter: Option<String>,
    pub action: String,
}

Definition for a rule to be used in the container-to-host section.

Fields

Network of the source container to apply the rule to.

Source container to apply the rule to.

Additional filter, which will be added to the iptables command.

Action to take (i.e. ACCEPT, DROP, REFUSE).

Trait Implementations

impl Debug for ContainerToHostRule
[src]

Formats the value using the given formatter. Read more

impl Clone for ContainerToHostRule
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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