pub struct PortMapping {
pub ip: Option<String>,
pub private_port: u16,
pub public_port: Option<u16>,
pub port_type: String,
}Expand description
See https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerList
Fields§
§ip: Option<String>§private_port: u16§public_port: Option<u16>§port_type: StringTrait Implementations§
source§impl Clone for PortMapping
impl Clone for PortMapping
source§fn clone(&self) -> PortMapping
fn clone(&self) -> PortMapping
Returns a copy 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 PortMapping
impl Debug for PortMapping
source§impl<'de> Deserialize<'de> for PortMapping
impl<'de> Deserialize<'de> for PortMapping
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<PortMapping> for PortMapping
impl PartialEq<PortMapping> for PortMapping
source§fn eq(&self, other: &PortMapping) -> bool
fn eq(&self, other: &PortMapping) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PortMapping
impl StructuralEq for PortMapping
impl StructuralPartialEq for PortMapping
Auto Trait Implementations§
impl RefUnwindSafe for PortMapping
impl Send for PortMapping
impl Sync for PortMapping
impl Unpin for PortMapping
impl UnwindSafe for PortMapping
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.