Struct docker_compose_types::ServiceBuilder
source · [−]pub struct ServiceBuilder { /* private fields */ }Expand description
Builder for Service.
Implementations
sourceimpl ServiceBuilder
impl ServiceBuilder
pub fn hostname<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn privileged<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn healthcheck<VALUE: Into<Option<Healthcheck>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn deploy<VALUE: Into<Option<Deploy>>>(&mut self, value: VALUE) -> &mut Self
pub fn image<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn container_name<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn build_<VALUE: Into<Option<BuildStep>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn pid<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn ports<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn environment<VALUE: Into<Option<Environment>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn network_mode<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn devices<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn restart<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn labels<VALUE: Into<Option<Labels>>>(&mut self, value: VALUE) -> &mut Self
pub fn ulimits<VALUE: Into<Option<Ulimits>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn volumes<VALUE: Into<Option<Volumes>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn networks<VALUE: Into<Option<Networks>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn cap_add<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn depends_on<VALUE: Into<Option<DependsOnOptions>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn command<VALUE: Into<Option<Command>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn entrypoint<VALUE: Into<Option<Entrypoint>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn env_file<VALUE: Into<Option<EnvFile>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn stop_grace_period<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn profiles<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn links<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn dns<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn ipc<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn net<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn stop_signal<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn user<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn working_dir<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn expose<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn volumes_from<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn extends<VALUE: Into<Option<IndexMap<String, String>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn logging<VALUE: Into<Option<LoggingParameters>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn scale<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stdin_open<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn shm_size<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn extensions<VALUE: Into<IndexMap<Extension, Value>>>(
&mut self,
value: VALUE
) -> &mut Self
Trait Implementations
sourceimpl Clone for ServiceBuilder
impl Clone for ServiceBuilder
sourcefn clone(&self) -> ServiceBuilder
fn clone(&self) -> ServiceBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnwindSafe for ServiceBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more