pub struct RunHistoryEntry {
pub project_name: String,
pub run_id: String,
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub status: RunStatus,
pub completed_stories: usize,
pub total_stories: usize,
pub branch: String,
}Expand description
Data for a single entry in the run history panel.
Represents an archived run for a project, displayed in the history view. This is the canonical definition used by both GUI and TUI.
Fields§
§project_name: StringThe project this run belongs to (used by TUI for grouping).
run_id: StringThe run ID.
started_at: DateTime<Utc>When the run started.
finished_at: Option<DateTime<Utc>>When the run finished (if completed).
status: RunStatusThe run status (completed/failed/running).
completed_stories: usizeNumber of completed stories.
total_stories: usizeTotal number of stories in the spec.
branch: StringBranch name for this run.
Implementations§
Source§impl RunHistoryEntry
impl RunHistoryEntry
Sourcepub fn new(
project_name: String,
run: &RunState,
completed_stories: usize,
total_stories: usize,
) -> Self
pub fn new( project_name: String, run: &RunState, completed_stories: usize, total_stories: usize, ) -> Self
Create a RunHistoryEntry from a RunState with explicit story counts.
Use this constructor when you have the story counts already computed.
Sourcepub fn from_run_state(project_name: String, run: &RunState) -> Self
pub fn from_run_state(project_name: String, run: &RunState) -> Self
Create a RunHistoryEntry from a RunState, computing story counts from iterations.
This method computes completed/total stories by analyzing the run’s iterations.
Use new() if you already have the story counts.
Sourcepub fn story_count_text(&self) -> String
pub fn story_count_text(&self) -> String
Format the story count as “X/Y stories”.
Sourcepub fn status_text(&self) -> &'static str
pub fn status_text(&self) -> &'static str
Format the run status as a display string.
Trait Implementations§
Source§impl Clone for RunHistoryEntry
impl Clone for RunHistoryEntry
Source§fn clone(&self) -> RunHistoryEntry
fn clone(&self) -> RunHistoryEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunHistoryEntry
impl Debug for RunHistoryEntry
Source§impl RunHistoryEntryExt for RunHistoryEntry
impl RunHistoryEntryExt for RunHistoryEntry
Source§fn status_color(&self) -> Color32
fn status_color(&self) -> Color32
Auto Trait Implementations§
impl Freeze for RunHistoryEntry
impl RefUnwindSafe for RunHistoryEntry
impl Send for RunHistoryEntry
impl Sync for RunHistoryEntry
impl Unpin for RunHistoryEntry
impl UnwindSafe for RunHistoryEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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