pub struct CommitData {
pub sha: String,
pub message: String,
pub author: UserSummary,
pub committer: UserSummary,
pub additions: u64,
pub deletions: u64,
pub files_changed: u64,
}Expand description
A summary of a single commit.
Contains the essential metadata needed for commit listings and timeline views.
Fields§
§sha: StringThe full SHA hash of the commit.
message: StringThe commit message (first line + body).
The commit author (the person who wrote the code).
committer: UserSummaryThe committer (the person who applied the commit).
additions: u64The number of lines added in this commit.
deletions: u64The number of lines deleted in this commit.
files_changed: u64The number of files changed in this commit.
Trait Implementations§
Source§impl Clone for CommitData
impl Clone for CommitData
Source§impl Debug for CommitData
impl Debug for CommitData
Source§impl<'de> Deserialize<'de> for CommitData
impl<'de> Deserialize<'de> for CommitData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CommitData
impl Freeze for CommitData
impl Move for CommitData
impl RefUnwindSafe for CommitData
impl Send for CommitData
impl Sync for CommitData
impl Unpin for CommitData
impl UnsafeUnpin for CommitData
impl UnwindSafe for CommitData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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