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: String
Network of the source container to apply the rule to.
src_container: Option<String>
Source container to apply the rule to.
filter: Option<String>
Additional filter, which will be added to the iptables command.
action: String
Action to take (i.e. ACCEPT
, DROP
, REFUSE
).
Trait Implementations
impl Debug for ContainerToHostRule
[src]
impl Debug for ContainerToHostRule
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 ContainerToHostRule
[src]
impl Clone for ContainerToHostRule
fn clone(&self) -> ContainerToHostRule
[src]
fn clone(&self) -> ContainerToHostRule
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 ContainerToHostRule
[src]
impl PartialEq for ContainerToHostRule
fn eq(&self, other: &ContainerToHostRule) -> bool
[src]
fn eq(&self, other: &ContainerToHostRule) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ContainerToHostRule) -> bool
[src]
fn ne(&self, other: &ContainerToHostRule) -> bool
This method tests for !=
.
impl Eq for ContainerToHostRule
[src]
impl Eq for ContainerToHostRule
impl Hash for ContainerToHostRule
[src]
impl Hash for ContainerToHostRule
Auto Trait Implementations
impl Send for ContainerToHostRule
impl Send for ContainerToHostRule
impl Sync for ContainerToHostRule
impl Sync for ContainerToHostRule