pub struct JobHistoryEntry {
pub transaction_id: String,
pub action_name: String,
pub risk_level: RiskLevel,
pub status: JobState,
pub summary: String,
pub created_at: String,
}Expand description
One structured audit-log row for the history IPC.
Unlike TransactionRecord (which crosses the proto boundary and omits the
creation timestamp), this is a serde-only DTO carried over the JSON daemon
wire. It exists so programmatic clients (the MCP sysknife_history tool)
get typed risk_level and created_at instead of re-parsing formatted
text. created_at is the ISO-8601 timestamp stored at insert time.
Fields§
§transaction_id: String§action_name: String§risk_level: RiskLevel§status: JobState§summary: String§created_at: StringTrait Implementations§
Source§impl Clone for JobHistoryEntry
impl Clone for JobHistoryEntry
Source§impl Debug for JobHistoryEntry
impl Debug for JobHistoryEntry
Source§impl<'de> Deserialize<'de> for JobHistoryEntry
impl<'de> Deserialize<'de> for JobHistoryEntry
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
Source§impl PartialEq for JobHistoryEntry
impl PartialEq for JobHistoryEntry
Source§impl Serialize for JobHistoryEntry
impl Serialize for JobHistoryEntry
impl StructuralPartialEq for JobHistoryEntry
Auto Trait Implementations§
impl Freeze for JobHistoryEntry
impl RefUnwindSafe for JobHistoryEntry
impl Send for JobHistoryEntry
impl Sync for JobHistoryEntry
impl Unpin for JobHistoryEntry
impl UnsafeUnpin for JobHistoryEntry
impl UnwindSafe for JobHistoryEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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