pub struct Activation {
pub rule_name: String,
pub salience: i32,
pub activation_group: Option<String>,
pub agenda_group: String,
pub ruleflow_group: Option<String>,
pub no_loop: bool,
pub lock_on_active: bool,
pub auto_focus: bool,
pub created_at: Instant,
pub condition_count: usize,
/* private fields */
}Expand description
Activation represents a rule that is ready to fire
Fields§
§rule_name: StringRule name
salience: i32Priority/salience (higher fires first)
activation_group: Option<String>Activation group (only one rule in group can fire)
agenda_group: StringAgenda group (for sequential execution)
ruleflow_group: Option<String>Ruleflow group (for workflow execution)
no_loop: boolNo-loop flag
lock_on_active: boolLock-on-active flag
auto_focus: boolAuto-focus flag
created_at: InstantCreation timestamp (for conflict resolution)
condition_count: usizeNumber of conditions in the rule (for complexity/simplicity strategies)
Implementations§
Source§impl Activation
impl Activation
Sourcepub fn with_condition_count(self, count: usize) -> Self
pub fn with_condition_count(self, count: usize) -> Self
Builder: Set condition count
Sourcepub fn with_activation_group(self, group: String) -> Self
pub fn with_activation_group(self, group: String) -> Self
Builder: Set activation group
Sourcepub fn with_agenda_group(self, group: String) -> Self
pub fn with_agenda_group(self, group: String) -> Self
Builder: Set agenda group
Sourcepub fn with_ruleflow_group(self, group: String) -> Self
pub fn with_ruleflow_group(self, group: String) -> Self
Builder: Set ruleflow group
Sourcepub fn with_no_loop(self, no_loop: bool) -> Self
pub fn with_no_loop(self, no_loop: bool) -> Self
Builder: Set no-loop
Sourcepub fn with_lock_on_active(self, lock: bool) -> Self
pub fn with_lock_on_active(self, lock: bool) -> Self
Builder: Set lock-on-active
Sourcepub fn with_auto_focus(self, auto_focus: bool) -> Self
pub fn with_auto_focus(self, auto_focus: bool) -> Self
Builder: Set auto-focus
Trait Implementations§
Source§impl Clone for Activation
impl Clone for Activation
Source§fn clone(&self) -> Activation
fn clone(&self) -> Activation
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 Activation
impl Debug for Activation
Source§impl Ord for Activation
impl Ord for Activation
Source§impl PartialEq for Activation
impl PartialEq for Activation
Source§impl PartialOrd for Activation
impl PartialOrd for Activation
impl Eq for Activation
Auto Trait Implementations§
impl Freeze for Activation
impl RefUnwindSafe for Activation
impl Send for Activation
impl Sync for Activation
impl Unpin for Activation
impl UnwindSafe for Activation
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