Struct k8s_openapi::v1_9::api::networking::v1::NetworkPolicyPeer[][src]

pub struct NetworkPolicyPeer {
    pub ip_block: Option<IPBlock>,
    pub namespace_selector: Option<LabelSelector>,
    pub pod_selector: Option<LabelSelector>,
}

NetworkPolicyPeer describes a peer to allow traffic from. Exactly one of its fields must be specified.

Fields

IPBlock defines policy on a particular IPBlock

Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.

This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.

Trait Implementations

impl Clone for NetworkPolicyPeer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NetworkPolicyPeer
[src]

Formats the value using the given formatter. Read more

impl Default for NetworkPolicyPeer
[src]

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

impl PartialEq for NetworkPolicyPeer
[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 NetworkPolicyPeer
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for NetworkPolicyPeer
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations