Struct k8s_openapi::v1_8::api::extensions::v1beta1::NetworkPolicyIngressRule[][src]

pub struct NetworkPolicyIngressRule {
    pub from: Option<Vec<NetworkPolicyPeer>>,
    pub ports: Option<Vec<NetworkPolicyPort>>,
}

This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.

Fields

List of sources which should be able to access the 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 sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.

List of ports which should be made accessible on the pods selected for this rule. 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.

Trait Implementations

impl Clone for NetworkPolicyIngressRule
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NetworkPolicyIngressRule
[src]

Formats the value using the given formatter. Read more

impl Default for NetworkPolicyIngressRule
[src]

Returns the "default value" for a type. Read more

impl PartialEq for NetworkPolicyIngressRule
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for NetworkPolicyIngressRule
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations