pub struct CommitInfo {
pub hash: String,
pub short: String,
pub author_name: String,
pub author_email: String,
pub date: String,
pub subject: String,
}Expand description
A single commit’s metadata.
Fields§
§hash: StringFull commit hash.
short: StringAbbreviated hash.
Author display name.
Author email.
date: StringAuthor date, ISO-8601 / RFC-3339.
subject: StringCommit subject line.
Trait Implementations§
Source§impl Clone for CommitInfo
impl Clone for CommitInfo
Source§fn clone(&self) -> CommitInfo
fn clone(&self) -> CommitInfo
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 CommitInfo
impl Debug for CommitInfo
impl Eq for CommitInfo
Source§impl PartialEq for CommitInfo
impl PartialEq for CommitInfo
Source§fn eq(&self, other: &CommitInfo) -> bool
fn eq(&self, other: &CommitInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommitInfo
impl Serialize for CommitInfo
impl StructuralPartialEq for CommitInfo
Auto Trait Implementations§
impl Freeze for CommitInfo
impl RefUnwindSafe for CommitInfo
impl Send for CommitInfo
impl Sync for CommitInfo
impl Unpin for CommitInfo
impl UnsafeUnpin for CommitInfo
impl UnwindSafe for CommitInfo
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