Struct bollard::service::UpdateServiceOptions [−][src]
pub struct UpdateServiceOptions {
pub version: u64,
pub registry_auth_from: bool,
pub rollback: bool,
}
Expand description
Parameters used in the Update Service API
Examples
use bollard::service::UpdateServiceOptions;
UpdateServiceOptions{
version: 1234,
..Default::default()
};
Fields
version: u64
The version number of the service object being updated. This is required to avoid conflicting writes. This version number should be the value as currently set on the service before the update.
registry_auth_from: bool
If the X-Registry-Auth header is not specified, this parameter indicates whether to use registry authorization credentials from the current or the previous spec.
rollback: bool
Set to this parameter to true to cause a server-side rollback to the previous service spec. The supplied spec will be ignored in this case.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for UpdateServiceOptions
impl Send for UpdateServiceOptions
impl Sync for UpdateServiceOptions
impl Unpin for UpdateServiceOptions
impl UnwindSafe for UpdateServiceOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more