pub struct EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts {
pub container_port: i32,
pub host_ip: Option<String>,
pub host_port: Option<i32>,
pub name: Option<String>,
pub protocol: Option<String>,
}Expand description
ContainerPort represents a network port in a single container.
Fields§
§container_port: i32Number 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<i32>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<String>Protocol for port. Must be UDP, TCP, or SCTP. Defaults to “TCP”.
Trait Implementations§
Source§impl Clone for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl Clone for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Source§fn clone(&self) -> EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
fn clone(&self) -> EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl Default for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Source§fn default() -> EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
fn default() -> EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl<'de> Deserialize<'de> for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
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 PartialEq for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl PartialEq for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Source§fn eq(
&self,
other: &EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts,
) -> bool
fn eq( &self, other: &EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
Auto Trait Implementations§
impl Freeze for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl RefUnwindSafe for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl Send for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl Sync for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl Unpin for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl UnsafeUnpin for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
impl UnwindSafe for EphemeralRunnerSetEphemeralRunnerSpecSpecInitContainersPorts
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