pub struct IoK8sApiCoreV1ContainerPort {
pub container_port: i64,
pub host_ip: Option<String>,
pub host_port: Option<i64>,
pub name: Option<String>,
pub protocol: Option<IoK8sApiCoreV1ContainerPortProtocol>,
}Expand description
ContainerPort represents a network port in a single container.
Fields§
§container_port: i64Number of port to expose on the pod’s IP address. This must be a valid port number, 0 < x < 65536.
host_ip: Option<String>What host IP to bind the external port to.
host_port: Option<i64>Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
name: Option<String>If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
protocol: Option<IoK8sApiCoreV1ContainerPortProtocol>Protocol for port. Must be UDP, TCP, or SCTP. Defaults to “TCP”.
Possible enum values:
"SCTP"is the SCTP protocol."TCP"is the TCP protocol."UDP"is the UDP protocol.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1ContainerPort
impl Clone for IoK8sApiCoreV1ContainerPort
Source§fn clone(&self) -> IoK8sApiCoreV1ContainerPort
fn clone(&self) -> IoK8sApiCoreV1ContainerPort
Returns a duplicate 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 IoK8sApiCoreV1ContainerPort
impl Debug for IoK8sApiCoreV1ContainerPort
Source§impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerPort
impl<'de> Deserialize<'de> for IoK8sApiCoreV1ContainerPort
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
Source§impl From<&IoK8sApiCoreV1ContainerPort> for IoK8sApiCoreV1ContainerPort
impl From<&IoK8sApiCoreV1ContainerPort> for IoK8sApiCoreV1ContainerPort
Source§fn from(value: &IoK8sApiCoreV1ContainerPort) -> Self
fn from(value: &IoK8sApiCoreV1ContainerPort) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1ContainerPort
impl RefUnwindSafe for IoK8sApiCoreV1ContainerPort
impl Send for IoK8sApiCoreV1ContainerPort
impl Sync for IoK8sApiCoreV1ContainerPort
impl Unpin for IoK8sApiCoreV1ContainerPort
impl UnwindSafe for IoK8sApiCoreV1ContainerPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more