pub struct HistoryEntry {
pub phase: String,
pub timestamp: DateTime<Utc>,
pub exit_code: i32,
pub success: bool,
pub tokens_input: Option<u64>,
pub tokens_output: Option<u64>,
pub fixup_count: Option<u32>,
pub model: Option<String>,
pub provider: Option<String>,
}Expand description
A single entry in the spec history timeline
Fields§
§phase: StringPhase that was executed
timestamp: DateTime<Utc>RFC3339 UTC timestamp of execution
exit_code: i32Exit code of the execution (0 = success)
success: boolWhether the execution was successful
tokens_input: Option<u64>LLM token usage for this execution (if available)
tokens_output: Option<u64>LLM token output for this execution (if available)
fixup_count: Option<u32>Number of fixups applied in this execution (if applicable)
model: Option<String>Model used for this execution
provider: Option<String>Provider used for this execution
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
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 HistoryEntry
impl Debug for HistoryEntry
Source§impl<'de> Deserialize<'de> for HistoryEntry
impl<'de> Deserialize<'de> for HistoryEntry
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 HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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