Struct docker_compose::v2::HostMapping
[−]
[src]
pub struct HostMapping { pub hostname: String, pub address: IpAddr, }
A host mapping to add to /etc/hosts
.
Fields
hostname: String
The hostname to add to /etc/hosts
.
address: IpAddr
The IPv4 or IPv6 address to map it to.
Methods
impl HostMapping
[src]
fn new(hostname: &str, address: &IpAddr) -> HostMapping
Create a new mapping from hostname
to address
.
Trait Implementations
impl Eq for HostMapping
[src]
impl PartialEq for HostMapping
[src]
fn eq(&self, __arg_0: &HostMapping) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &HostMapping) -> bool
This method tests for !=
.
impl Clone for HostMapping
[src]
fn clone(&self) -> HostMapping
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more