pub struct RawCommit {
pub message: String,
pub diff: Option<String>,
pub author: String,
pub email: String,
pub timestamp: Timestamp,
}Expand description
A commit related to the actual git commit.
diffis a string of git patch which is used to make a git commit.authoris same as the author of git commit. The committer is always same as the author.timestampis a git timestamp which represents up to seconds. So, the timestamp ofSemanticCommitshould be divided by 1000 to convert to that ofRawCommit.
Fields§
§message: String§diff: Option<String>§email: String§timestamp: TimestampTrait Implementations§
Source§impl<'de> Deserialize<'de> for RawCommit
impl<'de> Deserialize<'de> for RawCommit
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
impl Eq for RawCommit
impl StructuralPartialEq for RawCommit
Auto Trait Implementations§
impl Freeze for RawCommit
impl RefUnwindSafe for RawCommit
impl Send for RawCommit
impl Sync for RawCommit
impl Unpin for RawCommit
impl UnwindSafe for RawCommit
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§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.