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

pub struct NetworkPolicyPort {
    pub port: Option<IntOrString>,
    pub protocol: Option<String>,
}

Fields

If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.

Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.

Trait Implementations

impl Clone for NetworkPolicyPort
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NetworkPolicyPort
[src]

Formats the value using the given formatter. Read more

impl Default for NetworkPolicyPort
[src]

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

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for NetworkPolicyPort
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations