pub struct GitBranchStats {
pub ahead_count: Option<i32>,
pub behind_count: Option<i32>,
pub commit: Option<GitCommitRef>,
pub is_base_version: Option<bool>,
pub name: Option<String>,
}Expand description
Ahead and behind counts for a particular ref.
Fields§
§ahead_count: Option<i32>Number of commits ahead.
behind_count: Option<i32>Number of commits behind.
commit: Option<GitCommitRef>Provides properties that describe a Git commit and associated metadata.
is_base_version: Option<bool>True if this is the result for the base version.
name: Option<String>Name of the ref.
Implementations§
Trait Implementations§
Source§impl Clone for GitBranchStats
impl Clone for GitBranchStats
Source§fn clone(&self) -> GitBranchStats
fn clone(&self) -> GitBranchStats
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 GitBranchStats
impl Debug for GitBranchStats
Source§impl Default for GitBranchStats
impl Default for GitBranchStats
Source§fn default() -> GitBranchStats
fn default() -> GitBranchStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitBranchStats
impl<'de> Deserialize<'de> for GitBranchStats
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
Source§impl PartialEq for GitBranchStats
impl PartialEq for GitBranchStats
Source§impl Serialize for GitBranchStats
impl Serialize for GitBranchStats
impl StructuralPartialEq for GitBranchStats
Auto Trait Implementations§
impl Freeze for GitBranchStats
impl RefUnwindSafe for GitBranchStats
impl Send for GitBranchStats
impl Sync for GitBranchStats
impl Unpin for GitBranchStats
impl UnwindSafe for GitBranchStats
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