Struct bollard::service::UpdateServiceOptions
source · 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§
source§impl Clone for UpdateServiceOptions
impl Clone for UpdateServiceOptions
source§fn clone(&self) -> UpdateServiceOptions
fn clone(&self) -> UpdateServiceOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateServiceOptions
impl Debug for UpdateServiceOptions
source§impl Default for UpdateServiceOptions
impl Default for UpdateServiceOptions
source§fn default() -> UpdateServiceOptions
fn default() -> UpdateServiceOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for UpdateServiceOptions
impl PartialEq for UpdateServiceOptions
source§impl Serialize for UpdateServiceOptions
impl Serialize for UpdateServiceOptions
impl Copy for UpdateServiceOptions
impl StructuralPartialEq for UpdateServiceOptions
Auto Trait Implementations§
impl Freeze for UpdateServiceOptions
impl RefUnwindSafe for UpdateServiceOptions
impl Send for UpdateServiceOptions
impl Sync for UpdateServiceOptions
impl Unpin for UpdateServiceOptions
impl UnwindSafe for UpdateServiceOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)