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

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

NetworkPolicyPort describes a port to allow traffic on

Fields

port: Option<IntOrString>

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.

protocol: Option<String>

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

Trait Implementations

impl Clone for NetworkPolicyPort[src]

impl Debug for NetworkPolicyPort[src]

impl Default for NetworkPolicyPort[src]

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

impl PartialEq<NetworkPolicyPort> for NetworkPolicyPort[src]

impl Serialize for NetworkPolicyPort[src]

impl StructuralPartialEq for NetworkPolicyPort[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.