pub struct FileSnapshot {
pub path: String,
pub content: String,
pub blame: Vec<BlameSpan>,
}Expand description
One file as the file view reads it: worktree text plus per-line blame.
Fields§
§path: String§content: String§blame: Vec<BlameSpan>Empty when git has nothing to attribute, e.g. an untracked file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSnapshot
impl RefUnwindSafe for FileSnapshot
impl Send for FileSnapshot
impl Sync for FileSnapshot
impl Unpin for FileSnapshot
impl UnsafeUnpin for FileSnapshot
impl UnwindSafe for FileSnapshot
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