pub struct ContainerWithExposedPortOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerWithExposedPortOpts.
Implementations§
source§impl<'a> ContainerWithExposedPortOptsBuilder<'a>
impl<'a> ContainerWithExposedPortOptsBuilder<'a>
sourcepub fn protocol<VALUE: Into<NetworkProtocol>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn protocol<VALUE: Into<NetworkProtocol>>( &mut self, value: VALUE ) -> &mut Self
Transport layer network protocol
sourcepub fn description<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Optional port description
sourcepub fn build(
&self
) -> Result<ContainerWithExposedPortOpts<'a>, ContainerWithExposedPortOptsBuilderError>
pub fn build( &self ) -> Result<ContainerWithExposedPortOpts<'a>, ContainerWithExposedPortOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for ContainerWithExposedPortOptsBuilder<'a>
impl<'a> Clone for ContainerWithExposedPortOptsBuilder<'a>
source§fn clone(&self) -> ContainerWithExposedPortOptsBuilder<'a>
fn clone(&self) -> ContainerWithExposedPortOptsBuilder<'a>
Returns a copy 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 more