pub struct CodespaceGitStatus {
pub ahead: Option<i32>,
pub behind: Option<i32>,
pub has_unpushed_changes: Option<bool>,
pub has_uncommitted_changes: Option<bool>,
pub ref: Option<String>,
}
Expand description
CodespaceGitStatus : Details about the codespace’s git repository.
Fields§
§ahead: Option<i32>
The number of commits the local repository is ahead of the remote.
behind: Option<i32>
The number of commits the local repository is behind the remote.
has_unpushed_changes: Option<bool>
Whether the local repository has unpushed changes.
has_uncommitted_changes: Option<bool>
Whether the local repository has uncommitted changes.
ref: Option<String>
The current branch (or SHA if in detached HEAD state) of the local repository.
Implementations§
Source§impl CodespaceGitStatus
impl CodespaceGitStatus
Sourcepub fn new() -> CodespaceGitStatus
pub fn new() -> CodespaceGitStatus
Details about the codespace’s git repository.
Trait Implementations§
Source§impl Clone for CodespaceGitStatus
impl Clone for CodespaceGitStatus
Source§fn clone(&self) -> CodespaceGitStatus
fn clone(&self) -> CodespaceGitStatus
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 CodespaceGitStatus
impl Debug for CodespaceGitStatus
Source§impl Default for CodespaceGitStatus
impl Default for CodespaceGitStatus
Source§fn default() -> CodespaceGitStatus
fn default() -> CodespaceGitStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodespaceGitStatus
impl<'de> Deserialize<'de> for CodespaceGitStatus
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 CodespaceGitStatus
impl PartialEq for CodespaceGitStatus
Source§impl Serialize for CodespaceGitStatus
impl Serialize for CodespaceGitStatus
impl StructuralPartialEq for CodespaceGitStatus
Auto Trait Implementations§
impl Freeze for CodespaceGitStatus
impl RefUnwindSafe for CodespaceGitStatus
impl Send for CodespaceGitStatus
impl Sync for CodespaceGitStatus
impl Unpin for CodespaceGitStatus
impl UnwindSafe for CodespaceGitStatus
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