pub struct CommitRecord {
pub hash: String,
pub author_name: String,
pub author_email: String,
pub timestamp: String,
pub message: String,
pub signature_status: SignatureStatus,
}Expand description
A single commit record from the repository history.
Args:
hash: The abbreviated commit hash.author_name: The commit author’s name.author_email: The commit author’s email.timestamp: ISO-8601 formatted commit timestamp.message: First line of the commit message.signature_status: Classification of the commit’s signature.
Usage:
ⓘ
let record = CommitRecord {
hash: "abc1234".to_string(),
author_name: "Alice".to_string(),
author_email: "alice@example.com".to_string(),
timestamp: "2024-01-15T10:00:00Z".to_string(),
message: "initial commit".to_string(),
signature_status: SignatureStatus::Unsigned,
};Fields§
§hash: StringThe abbreviated commit hash.
The commit author’s name.
The commit author’s email.
timestamp: StringISO-8601 formatted commit timestamp.
message: StringFirst line of the commit message.
signature_status: SignatureStatusClassification of the commit’s signature.
Trait Implementations§
Source§impl Clone for CommitRecord
impl Clone for CommitRecord
Source§fn clone(&self) -> CommitRecord
fn clone(&self) -> CommitRecord
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 moreAuto Trait Implementations§
impl Freeze for CommitRecord
impl RefUnwindSafe for CommitRecord
impl Send for CommitRecord
impl Sync for CommitRecord
impl Unpin for CommitRecord
impl UnsafeUnpin for CommitRecord
impl UnwindSafe for CommitRecord
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