pub struct ServicePort {
pub container_port: u16,
pub name: Option<String>,
pub protocol: String,
}Expand description
A port exposed by a service.
Fields§
§container_port: u16Container port.
name: Option<String>Name.
protocol: StringProtocol: “TCP” (default) or “UDP”.
Implementations§
Trait Implementations§
Source§impl Clone for ServicePort
impl Clone for ServicePort
Source§fn clone(&self) -> ServicePort
fn clone(&self) -> ServicePort
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 Debug for ServicePort
impl Debug for ServicePort
Source§impl<'de> Deserialize<'de> for ServicePort
impl<'de> Deserialize<'de> for ServicePort
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 ServicePort
impl PartialEq for ServicePort
Source§fn eq(&self, other: &ServicePort) -> bool
fn eq(&self, other: &ServicePort) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServicePort
impl Serialize for ServicePort
impl StructuralPartialEq for ServicePort
Auto Trait Implementations§
impl Freeze for ServicePort
impl RefUnwindSafe for ServicePort
impl Send for ServicePort
impl Sync for ServicePort
impl Unpin for ServicePort
impl UnsafeUnpin for ServicePort
impl UnwindSafe for ServicePort
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