Struct k8s_openapi::api::batch::v1::SuccessPolicy
source · pub struct SuccessPolicy {
pub rules: Vec<SuccessPolicyRule>,
}
Expand description
SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
Fields§
§rules: Vec<SuccessPolicyRule>
rules represents the list of alternative rules for the declaring the Jobs as successful before .status.succeeded \>= .spec.completions
. Once any of the rules are met, the “SucceededCriteriaMet” condition is added, and the lingering pods are removed. The terminal state for such a Job has the “Complete” condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
Trait Implementations§
source§impl Clone for SuccessPolicy
impl Clone for SuccessPolicy
source§fn clone(&self) -> SuccessPolicy
fn clone(&self) -> SuccessPolicy
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 SuccessPolicy
impl Debug for SuccessPolicy
source§impl DeepMerge for SuccessPolicy
impl DeepMerge for SuccessPolicy
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for SuccessPolicy
impl Default for SuccessPolicy
source§fn default() -> SuccessPolicy
fn default() -> SuccessPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SuccessPolicy
impl<'de> Deserialize<'de> for SuccessPolicy
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 SuccessPolicy
impl PartialEq for SuccessPolicy
source§fn eq(&self, other: &SuccessPolicy) -> bool
fn eq(&self, other: &SuccessPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SuccessPolicy
impl Serialize for SuccessPolicy
impl StructuralPartialEq for SuccessPolicy
Auto Trait Implementations§
impl Freeze for SuccessPolicy
impl RefUnwindSafe for SuccessPolicy
impl Send for SuccessPolicy
impl Sync for SuccessPolicy
impl Unpin for SuccessPolicy
impl UnwindSafe for SuccessPolicy
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