pub struct ServiceBuilder { /* private fields */ }
Expand description
Builder for Service
.
Implementations§
Source§impl ServiceBuilder
impl ServiceBuilder
pub fn hostname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn domainname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn privileged<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn read_only<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<Ports>>(&mut self, value: VALUE) -> &mut Self
pub fn environment<VALUE: Into<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<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<Labels>>(&mut self, value: VALUE) -> &mut Self
pub fn tmpfs<VALUE: Into<Option<Tmpfs>>>(&mut self, value: VALUE) -> &mut Self
pub fn ulimits<VALUE: Into<Ulimits>>(&mut self, value: VALUE) -> &mut Self
pub fn volumes<VALUE: Into<Vec<Volumes>>>(&mut self, value: VALUE) -> &mut Self
pub fn networks<VALUE: Into<Networks>>(&mut self, value: VALUE) -> &mut Self
pub fn cap_add<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn cap_drop<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn depends_on<VALUE: Into<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<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn links<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn dns<VALUE: Into<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 userns_mode<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<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
pub fn extra_hosts<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn group_add<VALUE: Into<Vec<Group>>>(&mut self, value: VALUE) -> &mut Self
pub fn tty<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn sysctls<VALUE: Into<SysCtls>>(&mut self, value: VALUE) -> &mut Self
pub fn security_opt<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn secrets<VALUE: Into<Option<Secrets>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn pull_policy<VALUE: Into<Option<PullPolicy>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn cgroup_parent<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn mem_limit<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn mem_reservation<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn mem_swappiness<VALUE: Into<Option<u16>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn runtime<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl Clone for ServiceBuilder
impl Clone for ServiceBuilder
Source§fn clone(&self) -> ServiceBuilder
fn clone(&self) -> ServiceBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServiceBuilder
impl RefUnwindSafe for ServiceBuilder
impl Send for ServiceBuilder
impl Sync for ServiceBuilder
impl Unpin for ServiceBuilder
impl UnwindSafe for ServiceBuilder
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