Struct k8s_openapi::v1_10::api::networking::v1::NetworkPolicyPort [−][src]
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 or UDP) which traffic must match. If not specified, this field defaults to TCP.
Trait Implementations
impl Clone for NetworkPolicyPort[src]
impl Clone for NetworkPolicyPortfn clone(&self) -> NetworkPolicyPort[src]
fn clone(&self) -> NetworkPolicyPortReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for NetworkPolicyPort[src]
impl Debug for NetworkPolicyPortfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for NetworkPolicyPort[src]
impl Default for NetworkPolicyPortfn default() -> NetworkPolicyPort[src]
fn default() -> NetworkPolicyPortReturns the "default value" for a type. Read more
impl PartialEq for NetworkPolicyPort[src]
impl PartialEq for NetworkPolicyPortfn eq(&self, other: &NetworkPolicyPort) -> bool[src]
fn eq(&self, other: &NetworkPolicyPort) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &NetworkPolicyPort) -> bool[src]
fn ne(&self, other: &NetworkPolicyPort) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for NetworkPolicyPort[src]
impl<'de> Deserialize<'de> for NetworkPolicyPortfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for NetworkPolicyPort[src]
impl Serialize for NetworkPolicyPortAuto Trait Implementations
impl Send for NetworkPolicyPort
impl Send for NetworkPolicyPortimpl Sync for NetworkPolicyPort
impl Sync for NetworkPolicyPort