pub struct SidebarSections {
pub worktree: Vec<Line<'static>>,
pub working_tree: Vec<Line<'static>>,
pub working_tree_counts: WorkingTreeCounts,
pub recent_commits: Vec<Line<'static>>,
}Expand description
Per-section content of the worktree details sidebar. Rendered by
[draw_sidebar] into separate rounded-border blocks (no outer
Details frame, so each section reads as an independent card).
The Issue / PR section is intentionally absent here: it depends on
live App fetch state and is built per-frame via
github_status_lines, not cached on the worktree.
Fields§
§worktree: Vec<Line<'static>>Compact identity block: name (bold), branch · head, badges
(✓ synced / ● dirty / ↑N / ↓M plus optional ★ main,
🔒 locked, ⚠ prunable), tilde-compressed path.
working_tree: Vec<Line<'static>>git status --short lines, or ✓ clean, or a load error.
working_tree_counts: WorkingTreeCountsPer-category counts of changed files (issue #287): created / modified / deleted, driving the colour-coded nerdfont footer of the Working Tree pane.
recent_commits: Vec<Line<'static>>Up to 10 oneline commits, or an empty / error notice.
Trait Implementations§
Source§impl Clone for SidebarSections
impl Clone for SidebarSections
Source§fn clone(&self) -> SidebarSections
fn clone(&self) -> SidebarSections
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SidebarSections
impl Debug for SidebarSections
Source§impl Default for SidebarSections
impl Default for SidebarSections
Source§fn default() -> SidebarSections
fn default() -> SidebarSections
Auto Trait Implementations§
impl Freeze for SidebarSections
impl RefUnwindSafe for SidebarSections
impl Send for SidebarSections
impl Sync for SidebarSections
impl Unpin for SidebarSections
impl UnsafeUnpin for SidebarSections
impl UnwindSafe for SidebarSections
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> 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