pub struct RecreateDeploymentStrategyParams {
pub mid: Option<LifecycleHook>,
pub post: Option<LifecycleHook>,
pub pre: Option<LifecycleHook>,
pub timeout_seconds: Option<i64>,
}
Expand description
RecreateDeploymentStrategyParams are the input to the Recreate deployment strategy.
Fields§
§mid: Option<LifecycleHook>
Mid is a lifecycle hook which is executed while the deployment is scaled down to zero before the first new pod is created. All LifecycleHookFailurePolicy values are supported.
post: Option<LifecycleHook>
Post is a lifecycle hook which is executed after the strategy has finished all deployment logic. All LifecycleHookFailurePolicy values are supported.
pre: Option<LifecycleHook>
Pre is a lifecycle hook which is executed before the strategy manipulates the deployment. All LifecycleHookFailurePolicy values are supported.
timeout_seconds: Option<i64>
TimeoutSeconds is the time to wait for updates before giving up. If the value is nil, a default will be used.
Trait Implementations§
Source§impl Clone for RecreateDeploymentStrategyParams
impl Clone for RecreateDeploymentStrategyParams
Source§fn clone(&self) -> RecreateDeploymentStrategyParams
fn clone(&self) -> RecreateDeploymentStrategyParams
Returns a duplicate 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 Default for RecreateDeploymentStrategyParams
impl Default for RecreateDeploymentStrategyParams
Source§fn default() -> RecreateDeploymentStrategyParams
fn default() -> RecreateDeploymentStrategyParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecreateDeploymentStrategyParams
impl<'de> Deserialize<'de> for RecreateDeploymentStrategyParams
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecreateDeploymentStrategyParams
impl PartialEq for RecreateDeploymentStrategyParams
Source§fn eq(&self, other: &RecreateDeploymentStrategyParams) -> bool
fn eq(&self, other: &RecreateDeploymentStrategyParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RecreateDeploymentStrategyParams
Auto Trait Implementations§
impl Freeze for RecreateDeploymentStrategyParams
impl RefUnwindSafe for RecreateDeploymentStrategyParams
impl Send for RecreateDeploymentStrategyParams
impl Sync for RecreateDeploymentStrategyParams
impl Unpin for RecreateDeploymentStrategyParams
impl UnwindSafe for RecreateDeploymentStrategyParams
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