pub struct SessionHistoryEntry {
pub info: SessionInfo,
pub finished_at: Option<OffsetDateTime>,
pub exit_code: Option<i32>,
pub duration_ms: Option<i64>,
pub summary: SummaryCounts,
}Expand description
History row displayed in the UI.
Fields§
§info: SessionInfoSession metadata.
finished_at: Option<OffsetDateTime>End timestamp if known.
exit_code: Option<i32>Final exit code.
duration_ms: Option<i64>Duration in milliseconds.
summary: SummaryCountsSummary counts.
Implementations§
Source§impl SessionHistoryEntry
impl SessionHistoryEntry
Sourcepub fn status_label(&self) -> &'static str
pub fn status_label(&self) -> &'static str
Build a short status line for lists and tables.
Sourcepub fn command_line(&self) -> String
pub fn command_line(&self) -> String
Compose the command line for display.
Trait Implementations§
Source§impl Clone for SessionHistoryEntry
impl Clone for SessionHistoryEntry
Source§fn clone(&self) -> SessionHistoryEntry
fn clone(&self) -> SessionHistoryEntry
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 SessionHistoryEntry
impl Debug for SessionHistoryEntry
Source§impl<'de> Deserialize<'de> for SessionHistoryEntry
impl<'de> Deserialize<'de> for SessionHistoryEntry
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 SessionHistoryEntry
impl PartialEq for SessionHistoryEntry
Source§impl Serialize for SessionHistoryEntry
impl Serialize for SessionHistoryEntry
impl Eq for SessionHistoryEntry
impl StructuralPartialEq for SessionHistoryEntry
Auto Trait Implementations§
impl Freeze for SessionHistoryEntry
impl RefUnwindSafe for SessionHistoryEntry
impl Send for SessionHistoryEntry
impl Sync for SessionHistoryEntry
impl Unpin for SessionHistoryEntry
impl UnsafeUnpin for SessionHistoryEntry
impl UnwindSafe for SessionHistoryEntry
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