pub struct GitDiffResult {
pub added: Vec<PathBuf>,
pub modified: Vec<PathBuf>,
pub deleted: Vec<PathBuf>,
pub renamed: Vec<(PathBuf, PathBuf)>,
pub from_commit: String,
pub to_commit: String,
pub added_lines: usize,
pub deleted_lines: usize,
}Expand description
Git diff 分析结果
Fields§
§added: Vec<PathBuf>新增文件列表
modified: Vec<PathBuf>修改文件列表
deleted: Vec<PathBuf>删除文件列表
renamed: Vec<(PathBuf, PathBuf)>重命名文件列表(旧路径,新路径)
from_commit: String起始 commit hash
to_commit: String目标 commit hash
added_lines: usize新增行数
deleted_lines: usize删除行数
Trait Implementations§
Source§impl Clone for GitDiffResult
impl Clone for GitDiffResult
Source§fn clone(&self) -> GitDiffResult
fn clone(&self) -> GitDiffResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitDiffResult
impl Debug for GitDiffResult
Source§impl Default for GitDiffResult
impl Default for GitDiffResult
Source§fn default() -> GitDiffResult
fn default() -> GitDiffResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GitDiffResult
impl RefUnwindSafe for GitDiffResult
impl Send for GitDiffResult
impl Sync for GitDiffResult
impl Unpin for GitDiffResult
impl UnsafeUnpin for GitDiffResult
impl UnwindSafe for GitDiffResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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