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>HostIP is the host IP Address
host_port: Option<String>HostPort is the host port number
Implementations§
Source§impl PortBinding
impl PortBinding
pub fn new() -> PortBinding
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<'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 FromStr for PortBinding
Converts Query Parameters representation (style=form, explode=false) to a PortBinding value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for PortBinding
Converts Query Parameters representation (style=form, explode=false) to a PortBinding value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for PortBinding
impl PartialEq for PortBinding
Source§impl Serialize for PortBinding
impl Serialize for PortBinding
Source§impl ToString for PortBinding
Converts the PortBinding value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for PortBinding
Converts the PortBinding value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for PortBinding
impl Validate for PortBinding
Source§impl<'v_a> ValidateArgs<'v_a> for PortBinding
impl<'v_a> ValidateArgs<'v_a> 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