Struct k8s_openapi::v1_9::api::core::v1::EndpointPort[][src]

pub struct EndpointPort {
    pub name: Option<String>,
    pub port: i32,
    pub protocol: Option<String>,
}

EndpointPort is a tuple that describes a single port.

Fields

The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.

The port number of the endpoint.

The IP protocol for this port. Must be UDP or TCP. Default is TCP.

Trait Implementations

impl Clone for EndpointPort
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EndpointPort
[src]

Formats the value using the given formatter. Read more

impl Default for EndpointPort
[src]

Returns the "default value" for a type. Read more

impl PartialEq for EndpointPort
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for EndpointPort
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations