Struct k8s_openapi::v1_11::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 NetworkPolicyPort
fn clone(&self) -> NetworkPolicyPort
[src]
fn clone(&self) -> NetworkPolicyPort
Returns 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 NetworkPolicyPort
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for NetworkPolicyPort
[src]
impl Default for NetworkPolicyPort
fn default() -> NetworkPolicyPort
[src]
fn default() -> NetworkPolicyPort
Returns the "default value" for a type. Read more
impl PartialEq for NetworkPolicyPort
[src]
impl PartialEq for NetworkPolicyPort
fn eq(&self, other: &NetworkPolicyPort) -> bool
[src]
fn eq(&self, other: &NetworkPolicyPort) -> bool
This 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) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for NetworkPolicyPort
[src]
impl<'de> Deserialize<'de> for NetworkPolicyPort
fn 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 NetworkPolicyPort
Auto Trait Implementations
impl Send for NetworkPolicyPort
impl Send for NetworkPolicyPort
impl Sync for NetworkPolicyPort
impl Sync for NetworkPolicyPort