pub struct GraphCommit {
pub hash: String,
pub short: String,
pub parents: Vec<String>,
pub refs: Vec<String>,
pub author_name: String,
pub date: String,
pub subject: String,
pub board: bool,
}Expand description
A commit in the repository graph, with parent links and ref decorations.
Fields§
§hash: StringFull commit hash.
short: StringAbbreviated hash.
parents: Vec<String>Parent commit hashes (2+ means a merge).
refs: Vec<String>Ref decorations pointing at this commit (branches, tags, HEAD).
Author display name.
date: StringAuthor date, ISO-8601.
subject: StringCommit subject.
board: boolWhether this commit changed the board (.wipe/) - a board “checkpoint”.
Trait Implementations§
Source§impl Clone for GraphCommit
impl Clone for GraphCommit
Source§fn clone(&self) -> GraphCommit
fn clone(&self) -> GraphCommit
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 GraphCommit
impl Debug for GraphCommit
impl Eq for GraphCommit
Source§impl PartialEq for GraphCommit
impl PartialEq for GraphCommit
Source§fn eq(&self, other: &GraphCommit) -> bool
fn eq(&self, other: &GraphCommit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GraphCommit
impl Serialize for GraphCommit
impl StructuralPartialEq for GraphCommit
Auto Trait Implementations§
impl Freeze for GraphCommit
impl RefUnwindSafe for GraphCommit
impl Send for GraphCommit
impl Sync for GraphCommit
impl Unpin for GraphCommit
impl UnsafeUnpin for GraphCommit
impl UnwindSafe for GraphCommit
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