pub struct TimelineBar {
pub job: u64,
pub repository: String,
pub workflow: Option<String>,
pub name: String,
pub state: JobState,
pub conclusion: Option<String>,
pub runner_fault: bool,
pub queued_at: u64,
pub started_at: Option<u64>,
pub end: BarEnd,
pub runner: Option<String>,
}Expand description
One job on a timeline.
Fields§
§job: u64The job’s ID.
repository: Stringowner/name.
workflow: Option<String>The workflow’s name, without escapes or control characters, cut to 200 bytes.
name: StringThe job’s name, as the workflow’s.
state: JobStateWhere the job is.
conclusion: Option<String>GitHub’s conclusion once completed.
runner_fault: boolWhether the runner failed it rather than its code.
queued_at: u64When GitHub queued it: its wait starts here.
started_at: Option<u64>When its runner started it, which ends its wait; None until then, or when the history does not have it.
end: BarEndHow it ended: for a job that started, its run; for one that did not, its wait.
runner: Option<String>Its runner’s name, in a slot’s lane.
Implementations§
Source§impl TimelineBar
impl TimelineBar
Sourcepub fn of(job: &JobSummary) -> TimelineBar
pub fn of(job: &JobSummary) -> TimelineBar
A job’s bar as the history holds it; its names are made safe in SlotTimeline::assemble.
Sourcepub fn end_words(&self) -> Option<&'static str>
pub fn end_words(&self) -> Option<&'static str>
What its end says when it has no time: running, waiting, or end unknown; None for one that ended
when it says.
Sourcepub fn overlaps(&self, window: Span, runner: Option<BarEnd>) -> bool
pub fn overlaps(&self, window: Span, runner: Option<BarEnd>) -> bool
Whether it belongs on a timeline of window: queued before its end, and ended after its start, or still
going on. A job whose end is unknown may have run until its runner, which ended as runner says, was
removed: it is shown while that runner may have been up in the window. Without a runner here, only when it
began in the window. The store reads the same.
Trait Implementations§
Source§impl Clone for TimelineBar
impl Clone for TimelineBar
Source§impl Debug for TimelineBar
impl Debug for TimelineBar
Source§impl<'de> Deserialize<'de> for TimelineBar
impl<'de> Deserialize<'de> for TimelineBar
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>,
impl Eq for TimelineBar
Source§impl PartialEq for TimelineBar
impl PartialEq for TimelineBar
Source§impl Serialize for TimelineBar
impl Serialize for TimelineBar
impl StructuralPartialEq for TimelineBar
Auto Trait Implementations§
impl Forget for TimelineBar
impl Freeze for TimelineBar
impl Move for TimelineBar
impl RefUnwindSafe for TimelineBar
impl Send for TimelineBar
impl Sync for TimelineBar
impl Unpin for TimelineBar
impl UnsafeUnpin for TimelineBar
impl UnwindSafe for TimelineBar
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.