Struct bollard::service::UpdateServiceOptions[][src]

pub struct UpdateServiceOptions {
    pub version: u64,
    pub registry_auth_from: bool,
    pub rollback: bool,
}

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

impl Clone for UpdateServiceOptions[src]

impl Copy for UpdateServiceOptions[src]

impl Debug for UpdateServiceOptions[src]

impl Default for UpdateServiceOptions[src]

impl Serialize for UpdateServiceOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.