Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::EndpointPort
source · Expand description
EndpointPort is a tuple that describes a single port.
Fields§
§name: Option<String>
The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.
port: i32
The port number of the endpoint.
protocol: Option<String>
The IP protocol for this port. Must be UDP or TCP. Default is TCP.
Trait Implementations§
source§impl Clone for EndpointPort
impl Clone for EndpointPort
source§fn clone(&self) -> EndpointPort
fn clone(&self) -> EndpointPort
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EndpointPort
impl Debug for EndpointPort
source§impl Default for EndpointPort
impl Default for EndpointPort
source§fn default() -> EndpointPort
fn default() -> EndpointPort
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EndpointPort
impl<'de> Deserialize<'de> for EndpointPort
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more