Struct dfw::types::ExposePortBuilder[][src]

pub struct ExposePortBuilder {
    pub host_port: Option<u16>,
    pub container_port: Option<Option<u16>>,
    pub family: Option<String>,
}

Builder for ExposePort.

Fields

Port the container_port should be exposed to on the host.

Port the host_port should map to into the container.

Family of the exposed port.

Can be left blank, tcp will be used as default.

Methods

impl ExposePortBuilder
[src]

Port the container_port should be exposed to on the host.

Port the host_port should map to into the container.

Family of the exposed port.

Can be left blank, tcp will be used as default.

Builds a new ExposePort.

Errors

If a required field has not been initialized.

Trait Implementations

impl Default for ExposePortBuilder
[src]

Returns the "default value" for a type. Read more

impl Clone for ExposePortBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations