Struct bollard::service::PortBinding
source · pub struct PortBinding {
pub host_ip: Option<String>,
pub host_port: Option<String>,
}
Expand description
PortBinding represents a binding between a host IP address and a host port.
Fields§
§host_ip: Option<String>
Host IP address that the container’s port is mapped to.
host_port: Option<String>
Host port number that the container’s port is mapped to.
Trait Implementations§
source§impl Clone for PortBinding
impl Clone for PortBinding
source§fn clone(&self) -> PortBinding
fn clone(&self) -> PortBinding
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 PortBinding
impl Debug for PortBinding
source§impl Default for PortBinding
impl Default for PortBinding
source§fn default() -> PortBinding
fn default() -> PortBinding
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PortBinding
impl<'de> Deserialize<'de> for PortBinding
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PortBinding
impl PartialEq for PortBinding
source§impl Serialize for PortBinding
impl Serialize for PortBinding
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PortBinding
Auto Trait Implementations§
impl Freeze for PortBinding
impl RefUnwindSafe for PortBinding
impl Send for PortBinding
impl Sync for PortBinding
impl Unpin for PortBinding
impl UnwindSafe for PortBinding
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)