Struct dfw::types::ContainerToWiderWorldRule
source · pub struct ContainerToWiderWorldRule {
pub network: Option<String>,
pub src_container: Option<String>,
pub matches: Option<String>,
pub verdict: RuleVerdict,
pub external_network_interface: Option<String>,
}
Expand description
Definition for a rule to be used in the container-to-wider-world section.
Fields§
§network: Option<String>
Network of the source container to apply the rule to.
src_container: Option<String>
Source container to apply the rule to.
matches: Option<String>
Additional match-string, which will be added to the nftables command.
verdict: RuleVerdict
Verdict for rule (accept, drop or reject).
external_network_interface: Option<String>
Specific external network interface to target.
Trait Implementations§
source§impl Clone for ContainerToWiderWorldRule
impl Clone for ContainerToWiderWorldRule
source§fn clone(&self) -> ContainerToWiderWorldRule
fn clone(&self) -> ContainerToWiderWorldRule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContainerToWiderWorldRule
impl Debug for ContainerToWiderWorldRule
source§impl<'de> Deserialize<'de> for ContainerToWiderWorldRule
impl<'de> Deserialize<'de> for ContainerToWiderWorldRule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ContainerToWiderWorldRule
impl Hash for ContainerToWiderWorldRule
source§impl PartialEq for ContainerToWiderWorldRule
impl PartialEq for ContainerToWiderWorldRule
source§fn eq(&self, other: &ContainerToWiderWorldRule) -> bool
fn eq(&self, other: &ContainerToWiderWorldRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Process<Iptables> for ContainerToWiderWorldRule
impl Process<Iptables> for ContainerToWiderWorldRule
source§fn process(
&self,
ctx: &ProcessContext<'_, Iptables>
) -> Result<Option<Vec<IptablesRule>>>
fn process( &self, ctx: &ProcessContext<'_, Iptables> ) -> Result<Option<Vec<IptablesRule>>>
Process the current type within the given
ProcessContext
, returning zero or more rules
to apply with nft.source§impl Process<Nftables> for ContainerToWiderWorldRule
impl Process<Nftables> for ContainerToWiderWorldRule
source§fn process(
&self,
ctx: &ProcessContext<'_, Nftables>
) -> Result<Option<Vec<String>>>
fn process( &self, ctx: &ProcessContext<'_, Nftables> ) -> Result<Option<Vec<String>>>
Process the current type within the given
ProcessContext
, returning zero or more rules
to apply with nft.impl Eq for ContainerToWiderWorldRule
impl StructuralEq for ContainerToWiderWorldRule
impl StructuralPartialEq for ContainerToWiderWorldRule
Auto Trait Implementations§
impl RefUnwindSafe for ContainerToWiderWorldRule
impl Send for ContainerToWiderWorldRule
impl Sync for ContainerToWiderWorldRule
impl Unpin for ContainerToWiderWorldRule
impl UnwindSafe for ContainerToWiderWorldRule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.