pub struct EventRef {
pub id: String,
pub kind: String,
pub summary: String,
pub at: Option<String>,
}Expand description
Reference to a recent event the planner should be aware of.
Examples: a checkpoint summary, a recent failed action, a window activation. The full event lives in the run transcript / store; the view carries only what’s needed to prompt.
Fields§
§id: StringStable identifier or hash for cross-referencing the source record.
kind: StringEvent kind: “checkpoint”, “action_failed”, “focus_changed”, …
summary: StringOne-line natural-language description.
at: Option<String>Optional ISO-8601 timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventRef
impl<'de> Deserialize<'de> for EventRef
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 EventRef
impl RefUnwindSafe for EventRef
impl Send for EventRef
impl Sync for EventRef
impl Unpin for EventRef
impl UnsafeUnpin for EventRef
impl UnwindSafe for EventRef
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