pub struct DiffStatsJson {
pub files_changed: Vec<String>,
pub insertions: usize,
pub deletions: usize,
pub total_changes: usize,
}Expand description
Serializable diff statistics payload used by command JSON output.
Fields§
§files_changed: Vec<String>Files changed in the staged diff.
insertions: usizeNumber of inserted lines.
deletions: usizeNumber of deleted lines.
total_changes: usizeTotal changed lines (insertions + deletions).
Trait Implementations§
Source§impl Debug for DiffStatsJson
impl Debug for DiffStatsJson
Source§impl From<&DiffStats> for DiffStatsJson
impl From<&DiffStats> for DiffStatsJson
Auto Trait Implementations§
impl Freeze for DiffStatsJson
impl RefUnwindSafe for DiffStatsJson
impl Send for DiffStatsJson
impl Sync for DiffStatsJson
impl Unpin for DiffStatsJson
impl UnsafeUnpin for DiffStatsJson
impl UnwindSafe for DiffStatsJson
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
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> 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>
Converts
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>
Converts
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