Struct rustsec::repository::git::Commit
source · pub struct Commit {
pub commit_id: CommitHash,
pub author: String,
pub summary: String,
pub timestamp: OffsetDateTime,
pub signature: Option<Signature>,
/* private fields */
}Available on crate feature
git only.Expand description
Information about a commit to the Git repository
Fields§
§commit_id: CommitHashID (i.e. SHA-1 hash) of the latest commit
Information about the author of a commit
summary: StringSummary message for the commit
timestamp: OffsetDateTimeCommit time in number of seconds since the UNIX epoch
signature: Option<Signature>Signature on the commit (mandatory for Repository::fetch)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin 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