pub struct FileDecoration {
pub status: Option<Paint<char>>,
pub annotations: Vec<Line>,
pub progress: Option<ReviewProgress>,
pub stats: Option<FileStats>,
}Expand description
Decoration overlaid on a file header row.
The header already renders an expand/collapse marker, the file path, an optional file-kind badge, and a right-aligned diffstat. A decoration adds a leading status glyph, extra right-aligned segments, and an optional replacement for the diffstat.
Fields§
§status: Option<Paint<char>>Status glyph inserted before the path, for example an approval marker.
annotations: Vec<Line>Right-aligned segments shown before the diffstat, outermost first.
progress: Option<ReviewProgress>Review progress shown in the file header.
stats: Option<FileStats>Replacement for the computed addition and deletion counts, when set.
Trait Implementations§
Source§impl Clone for FileDecoration
impl Clone for FileDecoration
Source§impl Debug for FileDecoration
impl Debug for FileDecoration
Auto Trait Implementations§
impl Freeze for FileDecoration
impl RefUnwindSafe for FileDecoration
impl Send for FileDecoration
impl Sync for FileDecoration
impl Unpin for FileDecoration
impl UnsafeUnpin for FileDecoration
impl UnwindSafe for FileDecoration
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