pub struct CommitJson {
pub author_email: Option<String>,
pub author_name: Option<String>,
pub date: Option<String>,
pub message: Option<String>,
pub sha: Option<String>,
pub short_sha: Option<String>,
}Fields§
AuthorEmail is the commit author’s email.
AuthorName is the commit author’s name.
date: Option<String>Date is the author date, RFC 3339 UTC.
message: Option<String>Message is the commit’s SUBJECT — its first line only.
sha: Option<String>SHA is the full commit hash.
short_sha: Option<String>ShortSHA is the abbreviated hash a UI displays.
Implementations§
Source§impl CommitJson
impl CommitJson
pub fn new() -> CommitJson
Trait Implementations§
Source§impl Clone for CommitJson
impl Clone for CommitJson
Source§fn clone(&self) -> CommitJson
fn clone(&self) -> CommitJson
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 CommitJson
impl Debug for CommitJson
Source§impl Default for CommitJson
impl Default for CommitJson
Source§fn default() -> CommitJson
fn default() -> CommitJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommitJson
impl<'de> Deserialize<'de> for CommitJson
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
Source§impl PartialEq for CommitJson
impl PartialEq for CommitJson
Source§impl Serialize for CommitJson
impl Serialize for CommitJson
impl StructuralPartialEq for CommitJson
Auto Trait Implementations§
impl Freeze for CommitJson
impl RefUnwindSafe for CommitJson
impl Send for CommitJson
impl Sync for CommitJson
impl Unpin for CommitJson
impl UnsafeUnpin for CommitJson
impl UnwindSafe for CommitJson
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