Struct compose_yml::v2::HostMapping [] [src]

pub struct HostMapping {
    pub hostname: String,
    pub address: IpAddr,
}

A host mapping to add to /etc/hosts.

Fields

The hostname to add to /etc/hosts.

The IPv4 or IPv6 address to map it to.

Methods

impl HostMapping
[src]

Create a new mapping from hostname to address.

Trait Implementations

impl Eq for HostMapping
[src]

impl PartialEq for HostMapping
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for HostMapping
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HostMapping
[src]

Formats the value using the given formatter.

impl Display for HostMapping
[src]

Formats the value using the given formatter. Read more

impl FromStr for HostMapping
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more