[][src]Struct k8s_openapi::api::networking::v1::NetworkPolicyEgressRule

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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<NetworkPolicyEgressRule> for NetworkPolicyEgressRule[src]

impl Default for NetworkPolicyEgressRule[src]

impl Debug for NetworkPolicyEgressRule[src]

impl Serialize for NetworkPolicyEgressRule[src]

impl<'de> Deserialize<'de> for NetworkPolicyEgressRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]