Struct k8s_openapi::v1_10::api::networking::v1::NetworkPolicyEgressRule [−][src]
pub struct NetworkPolicyEgressRule {
pub ports: Option<Vec<NetworkPolicyPort>>,
pub to: Option<Vec<NetworkPolicyPeer>>,
}NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
Fields
ports: Option<Vec<NetworkPolicyPort>>
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
to: Option<Vec<NetworkPolicyPeer>>
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
Trait Implementations
impl Clone for NetworkPolicyEgressRule[src]
impl Clone for NetworkPolicyEgressRulefn clone(&self) -> NetworkPolicyEgressRule[src]
fn clone(&self) -> NetworkPolicyEgressRuleReturns 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)Performs copy-assignment from source. Read more
impl Debug for NetworkPolicyEgressRule[src]
impl Debug for NetworkPolicyEgressRulefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for NetworkPolicyEgressRule[src]
impl Default for NetworkPolicyEgressRulefn default() -> NetworkPolicyEgressRule[src]
fn default() -> NetworkPolicyEgressRuleReturns the "default value" for a type. Read more
impl PartialEq for NetworkPolicyEgressRule[src]
impl PartialEq for NetworkPolicyEgressRulefn eq(&self, other: &NetworkPolicyEgressRule) -> bool[src]
fn eq(&self, other: &NetworkPolicyEgressRule) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NetworkPolicyEgressRule) -> bool[src]
fn ne(&self, other: &NetworkPolicyEgressRule) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for NetworkPolicyEgressRule[src]
impl<'de> Deserialize<'de> for NetworkPolicyEgressRulefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for NetworkPolicyEgressRule[src]
impl Serialize for NetworkPolicyEgressRuleAuto Trait Implementations
impl Send for NetworkPolicyEgressRule
impl Send for NetworkPolicyEgressRuleimpl Sync for NetworkPolicyEgressRule
impl Sync for NetworkPolicyEgressRule