pub struct C2GitSnapshot {
pub is_repository: bool,
pub branch: Option<String>,
pub status: Vec<GitStatusEntry>,
pub recent_commits: Vec<GitCommitSummary>,
pub worktrees: Vec<C2GitWorktreeSnapshot>,
pub managed_worktree: Option<ManagedWorktreeGitScope>,
pub truncated: bool,
pub diagnostic_present: bool,
}Fields§
§is_repository: bool§branch: Option<String>§status: Vec<GitStatusEntry>§recent_commits: Vec<GitCommitSummary>§worktrees: Vec<C2GitWorktreeSnapshot>§managed_worktree: Option<ManagedWorktreeGitScope>§truncated: bool§diagnostic_present: boolImplementations§
Source§impl C2GitSnapshot
impl C2GitSnapshot
pub fn managed_worktree_is_valid_for(&self, workspace_id: &WorkspaceId) -> bool
Trait Implementations§
Source§impl Clone for C2GitSnapshot
impl Clone for C2GitSnapshot
Source§impl Debug for C2GitSnapshot
impl Debug for C2GitSnapshot
Source§impl<'de> Deserialize<'de> for C2GitSnapshot
impl<'de> Deserialize<'de> for C2GitSnapshot
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 C2GitSnapshot
Source§impl From<&GitSnapshot> for C2GitSnapshot
impl From<&GitSnapshot> for C2GitSnapshot
Source§fn from(git: &GitSnapshot) -> Self
fn from(git: &GitSnapshot) -> Self
Converts to this type from the input type.
Source§impl PartialEq for C2GitSnapshot
impl PartialEq for C2GitSnapshot
Source§impl Serialize for C2GitSnapshot
impl Serialize for C2GitSnapshot
impl StructuralPartialEq for C2GitSnapshot
Auto Trait Implementations§
impl Freeze for C2GitSnapshot
impl RefUnwindSafe for C2GitSnapshot
impl Send for C2GitSnapshot
impl Sync for C2GitSnapshot
impl Unpin for C2GitSnapshot
impl UnsafeUnpin for C2GitSnapshot
impl UnwindSafe for C2GitSnapshot
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