Struct k8s_openapi::v1_11::api::core::v1::EndpointPort [−][src]
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
impl Clone for EndpointPort
[src]
impl Clone for EndpointPort
fn clone(&self) -> EndpointPort
[src]
fn clone(&self) -> EndpointPort
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 EndpointPort
[src]
impl Debug for EndpointPort
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 EndpointPort
[src]
impl Default for EndpointPort
fn default() -> EndpointPort
[src]
fn default() -> EndpointPort
Returns the "default value" for a type. Read more
impl PartialEq for EndpointPort
[src]
impl PartialEq for EndpointPort
fn eq(&self, other: &EndpointPort) -> bool
[src]
fn eq(&self, other: &EndpointPort) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EndpointPort) -> bool
[src]
fn ne(&self, other: &EndpointPort) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for EndpointPort
[src]
impl<'de> Deserialize<'de> for EndpointPort
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 EndpointPort
[src]
impl Serialize for EndpointPort
Auto Trait Implementations
impl Send for EndpointPort
impl Send for EndpointPort
impl Sync for EndpointPort
impl Sync for EndpointPort