pub struct Branch {
pub place: Place,
pub project: String,
pub name: String,
pub workspace: PathBuf,
pub runs: Vec<Chip>,
}Expand description
A live branch and its Runs.
Fields§
§place: Place§project: StringThe project’s name: its repository’s or folder’s.
name: StringThe branch, a detached worktree’s folder name, or empty for a folder outside Git.
workspace: PathBufWhere its Current is scanned and its Artifacts’ tools run: the worktree (or folder) as it is now, at the workspace its newest Run used (or the app was started for) within it.
runs: Vec<Chip>Its Runs, oldest first.
Implementations§
Source§impl Branch
impl Branch
Sourcepub fn historical(run: &Run) -> Self
pub fn historical(run: &Run) -> Self
A saved Run on an absent branch, shown only while following its exact reference.
Sourcepub fn timeline(&self) -> impl Iterator<Item = &Chip>
pub fn timeline(&self) -> impl Iterator<Item = &Chip>
In-progress Runs first, then ended Runs, newest first within each group.
Trait Implementations§
impl Eq for Branch
impl StructuralPartialEq for Branch
Auto Trait Implementations§
impl Forget for Branch
impl Freeze for Branch
impl Move for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnsafeUnpin for Branchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Chip>: UnsafeUnpin,
impl UnwindSafe for Branch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.