pub struct HealingRule {
pub trigger: HealingTrigger,
pub action: HealingAction,
pub cooldown_secs: i64,
pub last_triggered: Option<DateTime<Utc>>,
}Expand description
A rule for self-healing behavior.
Fields§
§trigger: HealingTriggerTrigger condition.
action: HealingActionAction to take.
cooldown_secs: i64Cooldown before re-triggering (seconds).
last_triggered: Option<DateTime<Utc>>Last triggered.
Trait Implementations§
Source§impl Clone for HealingRule
impl Clone for HealingRule
Source§fn clone(&self) -> HealingRule
fn clone(&self) -> HealingRule
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 HealingRule
impl Debug for HealingRule
Source§impl<'de> Deserialize<'de> for HealingRule
impl<'de> Deserialize<'de> for HealingRule
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
Auto Trait Implementations§
impl Freeze for HealingRule
impl RefUnwindSafe for HealingRule
impl Send for HealingRule
impl Sync for HealingRule
impl Unpin for HealingRule
impl UnsafeUnpin for HealingRule
impl UnwindSafe for HealingRule
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