pub struct GitBranchAhead {
pub commit_count: u32,
pub stats: GitDiffStats,
pub commits: Vec<GitCommit>,
}Expand description
Layer 2 payload: how far the branch is ahead of the default branch, alongside the corresponding numstat.
Fields§
§commit_count: u32Number of commits between the merge-base with default_branch
and the branch tip. The renderer surfaces this so the user
can see “N commits ahead” without inferring it from the file
list.
stats: GitDiffStatsFile-level numstat for the same commit range.
commits: Vec<GitCommit>The chain itself, newest first, capped at the scan’s own bound: the count above says how many there are, these say what they are.
Trait Implementations§
Source§impl Clone for GitBranchAhead
impl Clone for GitBranchAhead
Source§impl Debug for GitBranchAhead
impl Debug for GitBranchAhead
Source§impl<'de> Deserialize<'de> for GitBranchAhead
impl<'de> Deserialize<'de> for GitBranchAhead
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 GitBranchAhead
Source§impl PartialEq for GitBranchAhead
impl PartialEq for GitBranchAhead
Source§impl Serialize for GitBranchAhead
impl Serialize for GitBranchAhead
impl StructuralPartialEq for GitBranchAhead
Auto Trait Implementations§
impl Freeze for GitBranchAhead
impl RefUnwindSafe for GitBranchAhead
impl Send for GitBranchAhead
impl Sync for GitBranchAhead
impl Unpin for GitBranchAhead
impl UnsafeUnpin for GitBranchAhead
impl UnwindSafe for GitBranchAhead
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.