pub struct PortBinding {
pub host_ip: Option<String>,
pub host_port: Option<String>,
}
Expand description
PortBinding : PortBinding represents a binding between a Host IP address and a Host Port
Fields§
§host_ip: Option<String>
HostIP is the host IP Address
host_port: Option<String>
HostPort is the host port number
Implementations§
Source§impl PortBinding
impl PortBinding
Sourcepub fn new() -> PortBinding
pub fn new() -> PortBinding
PortBinding represents a binding between a Host IP address and a Host Port
Trait Implementations§
Source§impl Clone for PortBinding
impl Clone for PortBinding
Source§fn clone(&self) -> PortBinding
fn clone(&self) -> PortBinding
Returns a duplicate 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