#[non_exhaustive]pub struct ContainerPort {
pub name: String,
pub container_port: i32,
/* private fields */
}Expand description
ContainerPort represents a network port in a single container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIf specified, used to specify which protocol to use. Allowed values are “http1” and “h2c”.
container_port: i32Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.
Implementations§
Trait Implementations§
Source§impl Clone for ContainerPort
impl Clone for ContainerPort
Source§fn clone(&self) -> ContainerPort
fn clone(&self) -> ContainerPort
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 ContainerPort
impl Debug for ContainerPort
Source§impl Default for ContainerPort
impl Default for ContainerPort
Source§fn default() -> ContainerPort
fn default() -> ContainerPort
Returns the “default value” for a type. Read more
Source§impl Message for ContainerPort
impl Message for ContainerPort
Source§impl PartialEq for ContainerPort
impl PartialEq for ContainerPort
impl StructuralPartialEq for ContainerPort
Auto Trait Implementations§
impl Freeze for ContainerPort
impl RefUnwindSafe for ContainerPort
impl Send for ContainerPort
impl Sync for ContainerPort
impl Unpin for ContainerPort
impl UnwindSafe for ContainerPort
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