pub struct JobEvent {
pub at: Option<String>,
pub state: Option<String>,
pub detail: Option<String>,
pub text: Option<String>,
pub extra: Value,
}Expand description
One timeline event. All fields optional because the daemon may
emit partial events (e.g. without text) and we’d rather pass
the structure through than fail the load.
Fields§
§at: Option<String>ISO-8601 timestamp.
state: Option<String>State name at this point in the timeline.
detail: Option<String>One-line detail (often the final result for terminal events).
text: Option<String>Full text body (markdown, often quite long for done
events). Distinct from detail: detail is a one-liner,
text is the full content.
extra: ValueAnything the daemon emits that doesn’t fit the above. Lets future daemon fields show up without a wrapper update.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobEvent
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnsafeUnpin for JobEvent
impl UnwindSafe for JobEvent
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