pub struct HeartbeatTask {
pub task: String,
pub cadence: String,
pub active: bool,
pub execution_count: u64,
pub last_checked: Option<DateTime<Utc>>,
}Expand description
A proactive task the fighter should check on its own initiative.
This is the Punch equivalent of OpenClaw’s HEARTBEAT.md — a checklist the fighter evaluates periodically and acts on without being prompted.
Fields§
§task: StringWhat to check or do. E.g., “Check if build pipeline is green”
cadence: StringHow often to check: “every_bout”, “hourly”, “daily”, “on_wake”.
active: boolWhether this task is currently active.
execution_count: u64How many times this task has been executed.
last_checked: Option<DateTime<Utc>>Last time this task was checked (if ever).
Trait Implementations§
Source§impl Clone for HeartbeatTask
impl Clone for HeartbeatTask
Source§fn clone(&self) -> HeartbeatTask
fn clone(&self) -> HeartbeatTask
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 HeartbeatTask
impl Debug for HeartbeatTask
Source§impl<'de> Deserialize<'de> for HeartbeatTask
impl<'de> Deserialize<'de> for HeartbeatTask
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 HeartbeatTask
impl RefUnwindSafe for HeartbeatTask
impl Send for HeartbeatTask
impl Sync for HeartbeatTask
impl Unpin for HeartbeatTask
impl UnsafeUnpin for HeartbeatTask
impl UnwindSafe for HeartbeatTask
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