Struct k8s_openapi::api::batch::v1::SuccessPolicyRule
source · pub struct SuccessPolicyRule {
pub succeeded_count: Option<i32>,
pub succeeded_indexes: Option<String>,
}
Expand description
SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the “succeededIndexes” or “succeededCount” specified.
Fields§
§succeeded_count: Option<i32>
succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is “1-4”, succeededCount is “3”, and completed indexes are “1”, “3”, and “5”, the Job isn’t declared as succeeded because only “1” and “3” indexes are considered in that rules. When this field is null, this doesn’t default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
succeeded_indexes: Option<String>
succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to “.spec.completions-1” and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as “1,3-5,7”. When this field is null, this field doesn’t default to any value and is never evaluated at any time.
Trait Implementations§
source§impl Clone for SuccessPolicyRule
impl Clone for SuccessPolicyRule
source§fn clone(&self) -> SuccessPolicyRule
fn clone(&self) -> SuccessPolicyRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuccessPolicyRule
impl Debug for SuccessPolicyRule
source§impl DeepMerge for SuccessPolicyRule
impl DeepMerge for SuccessPolicyRule
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for SuccessPolicyRule
impl Default for SuccessPolicyRule
source§fn default() -> SuccessPolicyRule
fn default() -> SuccessPolicyRule
source§impl<'de> Deserialize<'de> for SuccessPolicyRule
impl<'de> Deserialize<'de> for SuccessPolicyRule
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>,
source§impl PartialEq for SuccessPolicyRule
impl PartialEq for SuccessPolicyRule
source§impl Serialize for SuccessPolicyRule
impl Serialize for SuccessPolicyRule
impl StructuralPartialEq for SuccessPolicyRule
Auto Trait Implementations§
impl Freeze for SuccessPolicyRule
impl RefUnwindSafe for SuccessPolicyRule
impl Send for SuccessPolicyRule
impl Sync for SuccessPolicyRule
impl Unpin for SuccessPolicyRule
impl UnwindSafe for SuccessPolicyRule
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
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)
clone_to_uninit
)