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
host_port: Option<u16>
Port the container_port
should be exposed to on the host.
container_port: Option<Option<u16>>
Port the host_port
should map to into the container.
family: Option<String>
Family of the exposed port.
Can be left blank, tcp
will be used as default.
Methods
impl ExposePortBuilder
[src]
impl ExposePortBuilder
pub fn host_port(&mut self, value: u16) -> &mut Self
[src]
pub fn host_port(&mut self, value: u16) -> &mut Self
Port the container_port
should be exposed to on the host.
pub fn container_port(&mut self, value: Option<u16>) -> &mut Self
[src]
pub fn container_port(&mut self, value: Option<u16>) -> &mut Self
Port the host_port
should map to into the container.
pub fn family(&mut self, value: String) -> &mut Self
[src]
pub fn family(&mut self, value: String) -> &mut Self
Family of the exposed port.
Can be left blank, tcp
will be used as default.
pub fn build(&self) -> Result<ExposePort, String>
[src]
pub fn build(&self) -> Result<ExposePort, String>
Trait Implementations
impl Default for ExposePortBuilder
[src]
impl Default for ExposePortBuilder
fn default() -> ExposePortBuilder
[src]
fn default() -> ExposePortBuilder
Returns the "default value" for a type. Read more
impl Clone for ExposePortBuilder
[src]
impl Clone for ExposePortBuilder
fn clone(&self) -> ExposePortBuilder
[src]
fn clone(&self) -> ExposePortBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ExposePortBuilder
impl Send for ExposePortBuilder
impl Sync for ExposePortBuilder
impl Sync for ExposePortBuilder