#[non_exhaustive]pub struct CommitLogEntry {
pub commit_time: Option<Timestamp>,
pub commit_sha: String,
pub author: Option<CommitAuthor>,
pub commit_message: String,
/* private fields */
}Expand description
Represents a single commit log.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit_time: Option<Timestamp>Commit timestamp.
commit_sha: StringThe commit SHA for this commit log entry.
The commit author for this commit log entry.
commit_message: StringThe commit message for this commit log entry.
Implementations§
Source§impl CommitLogEntry
impl CommitLogEntry
pub fn new() -> Self
Sourcepub fn set_commit_time<T>(self, v: T) -> Self
pub fn set_commit_time<T>(self, v: T) -> Self
Sets the value of commit_time.
Sourcepub fn set_or_clear_commit_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_commit_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of commit_time.
Sourcepub fn set_commit_sha<T: Into<String>>(self, v: T) -> Self
pub fn set_commit_sha<T: Into<String>>(self, v: T) -> Self
Sets the value of commit_sha.
Sets the value of author.
Sets or clears the value of author.
Sourcepub fn set_commit_message<T: Into<String>>(self, v: T) -> Self
pub fn set_commit_message<T: Into<String>>(self, v: T) -> Self
Sets the value of commit_message.
Trait Implementations§
Source§impl Clone for CommitLogEntry
impl Clone for CommitLogEntry
Source§fn clone(&self) -> CommitLogEntry
fn clone(&self) -> CommitLogEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitLogEntry
impl Debug for CommitLogEntry
Source§impl Default for CommitLogEntry
impl Default for CommitLogEntry
Source§fn default() -> CommitLogEntry
fn default() -> CommitLogEntry
Returns the “default value” for a type. Read more
Source§impl Message for CommitLogEntry
impl Message for CommitLogEntry
Source§impl PartialEq for CommitLogEntry
impl PartialEq for CommitLogEntry
impl StructuralPartialEq for CommitLogEntry
Auto Trait Implementations§
impl Freeze for CommitLogEntry
impl RefUnwindSafe for CommitLogEntry
impl Send for CommitLogEntry
impl Sync for CommitLogEntry
impl Unpin for CommitLogEntry
impl UnwindSafe for CommitLogEntry
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