pub struct ContainerWithExposedPortOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerWithExposedPortOpts.
Implementations§
source§impl<'a> ContainerWithExposedPortOptsBuilder<'a>
impl<'a> ContainerWithExposedPortOptsBuilder<'a>
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 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 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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for ContainerWithExposedPortOptsBuilder<'a>
impl<'a> Send for ContainerWithExposedPortOptsBuilder<'a>
impl<'a> Sync for ContainerWithExposedPortOptsBuilder<'a>
impl<'a> Unpin for ContainerWithExposedPortOptsBuilder<'a>
impl<'a> UnwindSafe for ContainerWithExposedPortOptsBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more