pub struct ServiceBuilder { /* private fields */ }
Expand description

Builder for Service.

Implementations§

source§

impl ServiceBuilder

source

pub fn hostname<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn privileged<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self

source

pub fn healthcheck<VALUE: Into<Option<Healthcheck>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn deploy<VALUE: Into<Option<Deploy>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn image<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn container_name<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn build_<VALUE: Into<Option<BuildStep>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn pid<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn ports<VALUE: Into<Ports>>(&mut self, value: VALUE) -> &mut Self

source

pub fn environment<VALUE: Into<Environment>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn network_mode<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn devices<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn restart<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn labels<VALUE: Into<Labels>>(&mut self, value: VALUE) -> &mut Self

source

pub fn tmpfs<VALUE: Into<Option<Tmpfs>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn ulimits<VALUE: Into<Ulimits>>(&mut self, value: VALUE) -> &mut Self

source

pub fn volumes<VALUE: Into<Vec<Volumes>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn networks<VALUE: Into<Networks>>(&mut self, value: VALUE) -> &mut Self

source

pub fn cap_add<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn cap_drop<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn depends_on<VALUE: Into<DependsOnOptions>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn command<VALUE: Into<Option<Command>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn entrypoint<VALUE: Into<Option<Entrypoint>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn env_file<VALUE: Into<Option<EnvFile>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn stop_grace_period<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn profiles<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn dns<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn ipc<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn net<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn stop_signal<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn user<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn userns_mode<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn working_dir<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn expose<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn volumes_from<VALUE: Into<Vec<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn extends<VALUE: Into<IndexMap<String, String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn logging<VALUE: Into<Option<LoggingParameters>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn scale<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self

source

pub fn init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self

source

pub fn stdin_open<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self

source

pub fn shm_size<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn extensions<VALUE: Into<IndexMap<Extension, Value>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn extra_hosts<VALUE: Into<Vec<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn group_add<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn tty<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self

source

pub fn sysctls<VALUE: Into<SysCtls>>(&mut self, value: VALUE) -> &mut Self

source

pub fn security_opt<VALUE: Into<Vec<String>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn secrets<VALUE: Into<Option<Secrets>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn pull_policy<VALUE: Into<Option<PullPolicy>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn build(&self) -> Result<Service, ServiceBuilderError>

Builds a new Service.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl Clone for ServiceBuilder

source§

fn clone(&self) -> ServiceBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for ServiceBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.