pub struct GitSnapshot {
pub is_repository: bool,
pub branch: Option<String>,
pub status: Vec<GitStatusEntry>,
pub recent_commits: Vec<GitCommitSummary>,
pub worktrees: Vec<GitWorktreeSnapshot>,
pub managed_worktree: Option<ManagedWorktreeGitScope>,
pub truncated: bool,
pub diagnostic: Option<String>,
}Fields§
§is_repository: bool§branch: Option<String>§status: Vec<GitStatusEntry>§recent_commits: Vec<GitCommitSummary>§worktrees: Vec<GitWorktreeSnapshot>§managed_worktree: Option<ManagedWorktreeGitScope>§truncated: bool§diagnostic: Option<String>Implementations§
Source§impl GitSnapshot
impl GitSnapshot
pub fn managed_worktree_is_valid_for(&self, workspace_id: &WorkspaceId) -> bool
Trait Implementations§
Source§impl Clone for GitSnapshot
impl Clone for GitSnapshot
Source§impl Debug for GitSnapshot
impl Debug for GitSnapshot
Source§impl<'de> Deserialize<'de> for GitSnapshot
impl<'de> Deserialize<'de> for GitSnapshot
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 GitSnapshot
Source§impl PartialEq for GitSnapshot
impl PartialEq for GitSnapshot
Source§impl Serialize for GitSnapshot
impl Serialize for GitSnapshot
impl StructuralPartialEq for GitSnapshot
Auto Trait Implementations§
impl Freeze for GitSnapshot
impl RefUnwindSafe for GitSnapshot
impl Send for GitSnapshot
impl Sync for GitSnapshot
impl Unpin for GitSnapshot
impl UnsafeUnpin for GitSnapshot
impl UnwindSafe for GitSnapshot
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