pub struct EventRule {
pub name: String,
pub trigger: EventTrigger,
pub action: EventAction,
pub priority: u8,
pub enabled: bool,
pub cooldown_seconds: u64,
pub last_triggered: Option<u64>,
}Expand description
Rule that defines when and how to trigger algorithms based on events
Fields§
§name: String§trigger: EventTrigger§action: EventAction§priority: u8§enabled: bool§cooldown_seconds: u64§last_triggered: Option<u64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventRule
impl RefUnwindSafe for EventRule
impl Send for EventRule
impl Sync for EventRule
impl Unpin for EventRule
impl UnsafeUnpin for EventRule
impl UnwindSafe for EventRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more