[][src]Struct k8s_openapi::api::apps::v1beta1::DeploymentRollback

pub struct DeploymentRollback {
    pub name: String,
    pub rollback_to: RollbackConfig,
    pub updated_annotations: Option<BTreeMap<String, String>>,
}

DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.

Fields

name: String

Required: This must match the Name of a deployment.

rollback_to: RollbackConfig

The config of this deployment rollback.

updated_annotations: Option<BTreeMap<String, String>>

The annotations to be updated to a deployment

Methods

impl DeploymentRollback[src]

pub fn create_namespaced_deployment_rollback(
    name: &str,
    namespace: &str,
    body: &DeploymentRollback,
    optional: CreateNamespacedDeploymentRollbackOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedDeploymentRollbackResponse>), RequestError>
[src]

create rollback of a Deployment

Use the returned crate::ResponseBody<CreateNamespacedDeploymentRollbackResponse> constructor, or CreateNamespacedDeploymentRollbackResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the DeploymentRollback

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for DeploymentRollback[src]

impl Clone for DeploymentRollback[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<DeploymentRollback> for DeploymentRollback[src]

impl Default for DeploymentRollback[src]

impl Debug for DeploymentRollback[src]

impl Serialize for DeploymentRollback[src]

impl<'de> Deserialize<'de> for DeploymentRollback[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]