pub struct Commit {
pub sha: String,
pub short: String,
pub author: String,
pub email: String,
pub date: String,
pub subject: String,
}Expand description
One commit in the diffed range.
Fields§
§sha: StringFull 40-hex commit id — the stable identity of the commit.
short: StringAbbreviated id as git printed it, for human-facing display.
Author name, verbatim from git (%an).
email: StringAuthor email, verbatim from git (%ae); kept so exports can attribute
precisely even when display names collide.
date: StringAuthor date, RFC 3339 (git %aI).
subject: StringFirst line of the commit message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commit
impl<'de> Deserialize<'de> for Commit
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 Freeze for Commit
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl UnsafeUnpin for Commit
impl UnwindSafe for Commit
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