#[non_exhaustive]pub struct BlameLine {
pub commit: String,
pub orig_line: u32,
pub final_line: u32,
pub author: String,
pub author_time: i64,
pub author_tz: String,
pub content: String,
}Expand description
One line of git blame --line-porcelain output: who last touched the line
and where it came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit: StringFull hash of the commit that last changed the line.
orig_line: u32Line number in that commit’s version of the file (1-based).
final_line: u32Line number in the blamed version of the file (1-based).
Author name of that commit.
Author timestamp as a unix epoch (seconds).
Author timezone offset, e.g. +0200.
content: StringThe line’s content (without the trailing newline).
Trait Implementations§
impl Eq for BlameLine
impl StructuralPartialEq for BlameLine
Auto Trait Implementations§
impl Freeze for BlameLine
impl RefUnwindSafe for BlameLine
impl Send for BlameLine
impl Sync for BlameLine
impl Unpin for BlameLine
impl UnsafeUnpin for BlameLine
impl UnwindSafe for BlameLine
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