pub struct ContainerConfigBuilder<'l, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'l, S: State> ContainerConfigBuilder<'l, S>
impl<'l, S: State> ContainerConfigBuilder<'l, S>
Sourcepub fn build(self) -> ContainerConfig<'l>where
S: IsComplete,
pub fn build(self) -> ContainerConfig<'l>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: &'l str) -> ContainerConfigBuilder<'l, SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: &'l str) -> ContainerConfigBuilder<'l, SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn image(self, value: &'l str) -> ContainerConfigBuilder<'l, SetImage<S>>where
S::Image: IsUnset,
pub fn image(self, value: &'l str) -> ContainerConfigBuilder<'l, SetImage<S>>where
S::Image: IsUnset,
Required.
Sourcepub fn tag(self, value: &'l str) -> ContainerConfigBuilder<'l, SetTag<S>>where
S::Tag: IsUnset,
pub fn tag(self, value: &'l str) -> ContainerConfigBuilder<'l, SetTag<S>>where
S::Tag: IsUnset,
Required.
Sourcepub fn url(self, value: &'l str) -> ContainerConfigBuilder<'l, SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: &'l str) -> ContainerConfigBuilder<'l, SetUrl<S>>where
S::Url: IsUnset,
Required.
Sourcepub fn connection_port(
self,
value: u16,
) -> ContainerConfigBuilder<'l, SetConnectionPort<S>>where
S::ConnectionPort: IsUnset,
pub fn connection_port(
self,
value: u16,
) -> ContainerConfigBuilder<'l, SetConnectionPort<S>>where
S::ConnectionPort: IsUnset,
Required.
Sourcepub fn reuse_container(
self,
value: bool,
) -> ContainerConfigBuilder<'l, SetReuseContainer<S>>where
S::ReuseContainer: IsUnset,
pub fn reuse_container(
self,
value: bool,
) -> ContainerConfigBuilder<'l, SetReuseContainer<S>>where
S::ReuseContainer: IsUnset,
Required.
Sourcepub fn keep_configuration(
self,
value: bool,
) -> ContainerConfigBuilder<'l, SetKeepConfiguration<S>>where
S::KeepConfiguration: IsUnset,
pub fn keep_configuration(
self,
value: bool,
) -> ContainerConfigBuilder<'l, SetKeepConfiguration<S>>where
S::KeepConfiguration: IsUnset,
Required.
Sourcepub fn additional_ports(
self,
value: &'l [u16],
) -> ContainerConfigBuilder<'l, SetAdditionalPorts<S>>where
S::AdditionalPorts: IsUnset,
pub fn additional_ports(
self,
value: &'l [u16],
) -> ContainerConfigBuilder<'l, SetAdditionalPorts<S>>where
S::AdditionalPorts: IsUnset,
Sourcepub fn maybe_additional_ports(
self,
value: Option<&'l [u16]>,
) -> ContainerConfigBuilder<'l, SetAdditionalPorts<S>>where
S::AdditionalPorts: IsUnset,
pub fn maybe_additional_ports(
self,
value: Option<&'l [u16]>,
) -> ContainerConfigBuilder<'l, SetAdditionalPorts<S>>where
S::AdditionalPorts: IsUnset,
Sourcepub fn additional_env_vars(
self,
value: &'l [&'l str],
) -> ContainerConfigBuilder<'l, SetAdditionalEnvVars<S>>where
S::AdditionalEnvVars: IsUnset,
pub fn additional_env_vars(
self,
value: &'l [&'l str],
) -> ContainerConfigBuilder<'l, SetAdditionalEnvVars<S>>where
S::AdditionalEnvVars: IsUnset,
Sourcepub fn maybe_additional_env_vars(
self,
value: Option<&'l [&'l str]>,
) -> ContainerConfigBuilder<'l, SetAdditionalEnvVars<S>>where
S::AdditionalEnvVars: IsUnset,
pub fn maybe_additional_env_vars(
self,
value: Option<&'l [&'l str]>,
) -> ContainerConfigBuilder<'l, SetAdditionalEnvVars<S>>where
S::AdditionalEnvVars: IsUnset,
Sourcepub fn platform(
self,
value: &'l str,
) -> ContainerConfigBuilder<'l, SetPlatform<S>>where
S::Platform: IsUnset,
pub fn platform(
self,
value: &'l str,
) -> ContainerConfigBuilder<'l, SetPlatform<S>>where
S::Platform: IsUnset,
Sourcepub fn maybe_platform(
self,
value: Option<&'l str>,
) -> ContainerConfigBuilder<'l, SetPlatform<S>>where
S::Platform: IsUnset,
pub fn maybe_platform(
self,
value: Option<&'l str>,
) -> ContainerConfigBuilder<'l, SetPlatform<S>>where
S::Platform: IsUnset,
Sourcepub fn wait_strategy(
self,
value: WaitStrategy,
) -> ContainerConfigBuilder<'l, SetWaitStrategy<S>>where
S::WaitStrategy: IsUnset,
pub fn wait_strategy(
self,
value: WaitStrategy,
) -> ContainerConfigBuilder<'l, SetWaitStrategy<S>>where
S::WaitStrategy: IsUnset,
Required.
Auto Trait Implementations§
impl<'l, S> Freeze for ContainerConfigBuilder<'l, S>
impl<'l, S> RefUnwindSafe for ContainerConfigBuilder<'l, S>
impl<'l, S> Send for ContainerConfigBuilder<'l, S>
impl<'l, S> Sync for ContainerConfigBuilder<'l, S>
impl<'l, S> Unpin for ContainerConfigBuilder<'l, S>
impl<'l, S> UnwindSafe for ContainerConfigBuilder<'l, S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request