Enum protos::sp_internal::notify_request::ConditionType
source · pub enum ConditionType {
CONDITION_TYPE_UNSET = 0,
CONDITION_TYPE_ON_TRUE = 1,
CONDITION_TYPE_ON_FALSE = 2,
CONDITION_TYPE_ON_ERROR = 3,
}Expand description
This will be used to pull the condition type (true, false, error) from the pipeline step, so that we can include metadata, abort condition, etc., in the notification The condition will contain the notification configuration also.
Variants§
CONDITION_TYPE_UNSET = 0
CONDITION_TYPE_ON_TRUE = 1
CONDITION_TYPE_ON_FALSE = 2
CONDITION_TYPE_ON_ERROR = 3
Trait Implementations§
source§impl Clone for ConditionType
impl Clone for ConditionType
source§fn clone(&self) -> ConditionType
fn clone(&self) -> ConditionType
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 ConditionType
impl Debug for ConditionType
source§impl Default for ConditionType
impl Default for ConditionType
source§impl Enum for ConditionType
impl Enum for ConditionType
source§fn from_i32(value: i32) -> Option<ConditionType>
fn from_i32(value: i32) -> Option<ConditionType>
Try to create an enum from
i32 value.
Return None if value is unknown.source§fn from_str(str: &str) -> Option<ConditionType>
fn from_str(str: &str) -> Option<ConditionType>
Try to create an enum from
&str value.
Return None if str is unknown.source§const VALUES: &'static [ConditionType] = _
const VALUES: &'static [ConditionType] = _
All enum values for enum type.
source§impl EnumFull for ConditionType
impl EnumFull for ConditionType
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for ConditionType
impl Hash for ConditionType
source§impl PartialEq for ConditionType
impl PartialEq for ConditionType
source§fn eq(&self, other: &ConditionType) -> bool
fn eq(&self, other: &ConditionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ConditionType
impl Eq for ConditionType
impl StructuralPartialEq for ConditionType
Auto Trait Implementations§
impl Freeze for ConditionType
impl RefUnwindSafe for ConditionType
impl Send for ConditionType
impl Sync for ConditionType
impl Unpin for ConditionType
impl UnwindSafe for ConditionType
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