pub enum ActionType {
Set {
field: String,
value: Value,
},
Log {
message: String,
},
Call {
function: String,
args: Vec<Value>,
},
MethodCall {
object: String,
method: String,
args: Vec<Value>,
},
Update {
object: String,
},
Custom {
action_type: String,
params: HashMap<String, Value>,
},
ActivateAgendaGroup {
group: String,
},
ScheduleRule {
rule_name: String,
delay_ms: u64,
},
CompleteWorkflow {
workflow_name: String,
},
SetWorkflowData {
key: String,
value: Value,
},
}Expand description
Action types that can be performed when a rule matches
Variants§
Set
Set a field to a specific value
Log
Log a message
Call
Call a function
MethodCall
Call a method on an object
Update
Update an object
Custom
Custom action
ActivateAgendaGroup
Activate a specific agenda group for workflow progression
ScheduleRule
Schedule a rule to execute after a delay
CompleteWorkflow
Complete a workflow and trigger cleanup
SetWorkflowData
Set workflow-specific data
Trait Implementations§
Source§impl Clone for ActionType
impl Clone for ActionType
Source§fn clone(&self) -> ActionType
fn clone(&self) -> ActionType
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 Debug for ActionType
impl Debug for ActionType
Source§impl PartialEq for ActionType
impl PartialEq for ActionType
impl StructuralPartialEq for ActionType
Auto Trait Implementations§
impl Freeze for ActionType
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
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