pub struct RuleTrigger {
pub id: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub type: RuleTriggerKeyword,
pub value: String,
pub prohibited: Option<bool>,
pub order: Option<i32>,
pub active: Option<bool>,
pub stop_processing: Option<bool>,
}Fields§
§id: Option<String>§created_at: Option<String>§updated_at: Option<String>§type: RuleTriggerKeyword§value: StringThe accompanying value the trigger responds to. This value is often mandatory, but this depends on the trigger.
prohibited: Option<bool>If ‘prohibited’ is true, this rule trigger will be negated. ‘Description is’ will become ‘Description is NOT’ etc.
order: Option<i32>Order of the trigger
active: Option<bool>If the trigger is active. Defaults to true.
stop_processing: Option<bool>When true, other triggers will not be checked if this trigger was triggered. Defaults to false.
Implementations§
Source§impl RuleTrigger
impl RuleTrigger
pub fn new(type: RuleTriggerKeyword, value: String) -> RuleTrigger
Trait Implementations§
Source§impl Clone for RuleTrigger
impl Clone for RuleTrigger
Source§impl Debug for RuleTrigger
impl Debug for RuleTrigger
Source§impl Default for RuleTrigger
impl Default for RuleTrigger
Source§impl<'de> Deserialize<'de> for RuleTrigger
impl<'de> Deserialize<'de> for RuleTrigger
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 Display for RuleTrigger
impl Display for RuleTrigger
Source§impl PartialEq for RuleTrigger
impl PartialEq for RuleTrigger
Source§impl Serialize for RuleTrigger
impl Serialize for RuleTrigger
impl StructuralPartialEq for RuleTrigger
Auto Trait Implementations§
impl Freeze for RuleTrigger
impl RefUnwindSafe for RuleTrigger
impl Send for RuleTrigger
impl Sync for RuleTrigger
impl Unpin for RuleTrigger
impl UnsafeUnpin for RuleTrigger
impl UnwindSafe for RuleTrigger
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