pub struct ServiceOptsBuilder { /* private fields */ }
Available on crate feature
swarm
only.Implementations§
Source§impl ServiceOptsBuilder
impl ServiceOptsBuilder
pub fn name<S>(self, name: S) -> Self
pub fn labels<L, K, V>(self, labels: L) -> Self
pub fn task_template(self, spec: &TaskSpec) -> Self
pub fn mode(self, mode: &ServiceSpecModeInlineItem) -> Self
pub fn update_config(self, conf: &ServiceSpecUpdateConfigInlineItem) -> Self
pub fn rollback_config(self, conf: &ServiceSpecRollbackConfigInlineItem) -> Self
pub fn networks<N>(self, networks: N) -> Selfwhere
N: IntoIterator<Item = NetworkAttachmentConfig>,
pub fn endpoint_spec(self, spec: &EndpointSpec) -> Self
pub fn auth(self, auth: RegistryAuth) -> Self
pub fn build(self) -> Result<ServiceOpts>
Trait Implementations§
Source§impl Default for ServiceOptsBuilder
impl Default for ServiceOptsBuilder
Source§fn default() -> ServiceOptsBuilder
fn default() -> ServiceOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceOptsBuilder
impl !RefUnwindSafe for ServiceOptsBuilder
impl Send for ServiceOptsBuilder
impl Sync for ServiceOptsBuilder
impl Unpin for ServiceOptsBuilder
impl !UnwindSafe for ServiceOptsBuilder
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