Struct docker_api::opts::ServiceOptsBuilder
source · [−]pub struct ServiceOptsBuilder { /* private fields */ }
Implementations
sourceimpl ServiceOptsBuilder
impl ServiceOptsBuilder
pub fn name<S>(self, name: S) -> Self where
S: AsRef<str>,
Available on crate feature
swarm
only.pub fn labels<L, K, V>(self, labels: L) -> Self where
L: IntoIterator<Item = (K, V)>,
K: AsRef<str> + Serialize + Eq + Hash,
V: AsRef<str> + Serialize,
Available on crate feature
swarm
only.pub fn task_template(self, spec: &TaskSpec) -> Self
Available on crate feature
swarm
only.pub fn mode(self, mode: &ServiceSpecModeInlineItem) -> Self
Available on crate feature
swarm
only.pub fn update_config(self, conf: &ServiceSpecUpdateConfigInlineItem) -> Self
Available on crate feature
swarm
only.pub fn rollback_config(self, conf: &ServiceSpecRollbackConfigInlineItem) -> Self
Available on crate feature
swarm
only.pub fn networks<N>(self, networks: N) -> Self where
N: IntoIterator<Item = NetworkAttachmentConfig>,
Available on crate feature
swarm
only.pub fn endpoint_spec(self, spec: &EndpointSpec) -> Self
Available on crate feature
swarm
only.pub fn auth(self, auth: RegistryAuth) -> Self
Available on crate feature
swarm
only.pub fn build(self) -> Result<ServiceOpts>
Available on crate feature
swarm
only.Trait Implementations
sourceimpl Default for ServiceOptsBuilder
Available on crate feature swarm
only.
impl Default for ServiceOptsBuilder
Available on crate feature
swarm
only.sourcefn default() -> ServiceOptsBuilder
fn default() -> ServiceOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ServiceOptsBuilder
impl Send for ServiceOptsBuilder
impl Sync for ServiceOptsBuilder
impl Unpin for ServiceOptsBuilder
impl !UnwindSafe for ServiceOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more