#[non_exhaustive]pub struct FetchGitAheadBehindResponse {
pub commits_ahead: i32,
pub commits_behind: i32,
/* private fields */
}Expand description
FetchGitAheadBehind response message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commits_ahead: i32The number of commits in the remote branch that are not in the workspace.
commits_behind: i32The number of commits in the workspace that are not in the remote branch.
Implementations§
Source§impl FetchGitAheadBehindResponse
impl FetchGitAheadBehindResponse
pub fn new() -> Self
Sourcepub fn set_commits_ahead<T: Into<i32>>(self, v: T) -> Self
pub fn set_commits_ahead<T: Into<i32>>(self, v: T) -> Self
Sets the value of commits_ahead.
Sourcepub fn set_commits_behind<T: Into<i32>>(self, v: T) -> Self
pub fn set_commits_behind<T: Into<i32>>(self, v: T) -> Self
Sets the value of commits_behind.
Trait Implementations§
Source§impl Clone for FetchGitAheadBehindResponse
impl Clone for FetchGitAheadBehindResponse
Source§fn clone(&self) -> FetchGitAheadBehindResponse
fn clone(&self) -> FetchGitAheadBehindResponse
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 FetchGitAheadBehindResponse
impl Debug for FetchGitAheadBehindResponse
Source§impl Default for FetchGitAheadBehindResponse
impl Default for FetchGitAheadBehindResponse
Source§fn default() -> FetchGitAheadBehindResponse
fn default() -> FetchGitAheadBehindResponse
Returns the “default value” for a type. Read more
impl StructuralPartialEq for FetchGitAheadBehindResponse
Auto Trait Implementations§
impl Freeze for FetchGitAheadBehindResponse
impl RefUnwindSafe for FetchGitAheadBehindResponse
impl Send for FetchGitAheadBehindResponse
impl Sync for FetchGitAheadBehindResponse
impl Unpin for FetchGitAheadBehindResponse
impl UnwindSafe for FetchGitAheadBehindResponse
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