Struct bollard::container::PortBinding
source · Expand description
Describes the mapping of container ports to host ports, using the container’s
port-number and protocol as key in the format <port>/<protocol>
, for example, 80/udp
. If a
container’s port is mapped for multiple protocols, separate entries are added to the mapping
table.
Fields§
§host_ip: T
§host_port: T
Trait Implementations§
source§impl<T: Clone> Clone for PortBinding<T>where
T: AsRef<str>,
impl<T: Clone> Clone for PortBinding<T>where
T: AsRef<str>,
source§fn clone(&self) -> PortBinding<T>
fn clone(&self) -> PortBinding<T>
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<'de, T> Deserialize<'de> for PortBinding<T>where
T: AsRef<str>,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PortBinding<T>where
T: AsRef<str>,
T: Deserialize<'de>,
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