Struct bollard_stubs::models::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<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 PortBinding
impl PartialEq for PortBinding
source§impl Serialize for PortBinding
impl Serialize for PortBinding
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
)