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
Port description. Example: “payment API endpoint”
Sourcepub fn experimental_skip_healthcheck<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn experimental_skip_healthcheck<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Skip the health check when run as a service.
Sourcepub fn protocol<VALUE: Into<NetworkProtocol>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn protocol<VALUE: Into<NetworkProtocol>>( &mut self, value: VALUE, ) -> &mut Self
Network protocol. Example: “tcp”
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 duplicate 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> Freeze for ContainerWithExposedPortOptsBuilder<'a>
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