[−][src]Struct k8s_openapi::api::core::v1::ContainerPort
ContainerPort represents a network port in a single container.
Fields
container_port: i32
Number 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
impl Clone for ContainerPort
[src]
pub fn clone(&self) -> ContainerPort
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContainerPort
[src]
impl Default for ContainerPort
[src]
pub fn default() -> ContainerPort
[src]
impl<'de> Deserialize<'de> for ContainerPort
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<ContainerPort> for ContainerPort
[src]
pub fn eq(&self, other: &ContainerPort) -> bool
[src]
pub fn ne(&self, other: &ContainerPort) -> bool
[src]
impl Serialize for ContainerPort
[src]
impl StructuralPartialEq for ContainerPort
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContainerPort
[src]
impl Send for ContainerPort
[src]
impl Sync for ContainerPort
[src]
impl Unpin for ContainerPort
[src]
impl UnwindSafe for ContainerPort
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,