pub struct CommitProvenance {
pub commit: String,
pub parents: Vec<String>,
pub author_name: String,
pub author_email: String,
pub committer_name: String,
pub committer_email: String,
pub message: String,
}Expand description
Commit header and message metadata read directly from a git commit object.
Fields§
§commit: StringFull 40-hex commit SHA (%H).
parents: Vec<String>Parent commit SHAs in order (%P).
Raw author name (%an, ignoring .mailmap).
Raw author email (%ae, ignoring .mailmap).
committer_name: StringRaw committer name (%cn, ignoring .mailmap).
committer_email: StringRaw committer email (%ce, ignoring .mailmap).
message: StringFull commit message (%B), with at most one trailing line ending removed.
Trait Implementations§
Source§impl Clone for CommitProvenance
impl Clone for CommitProvenance
Source§impl Debug for CommitProvenance
impl Debug for CommitProvenance
impl Eq for CommitProvenance
Source§impl PartialEq for CommitProvenance
impl PartialEq for CommitProvenance
impl StructuralPartialEq for CommitProvenance
Auto Trait Implementations§
impl Forget for CommitProvenance
impl Freeze for CommitProvenance
impl Move for CommitProvenance
impl RefUnwindSafe for CommitProvenance
impl Send for CommitProvenance
impl Sync for CommitProvenance
impl Unpin for CommitProvenance
impl UnsafeUnpin for CommitProvenance
impl UnwindSafe for CommitProvenance
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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