pub struct WorktreeSnapshot {
pub root_path: PathBuf,
pub worktree_path: PathBuf,
pub default_branch: String,
}Expand description
Serializable worktree context snapshot for reports.
Fields§
§root_path: PathBufSource checkout used for file operations.
worktree_path: PathBufCurrent worktree root where targets and commands are anchored.
default_branch: StringBest-effort default branch name.
Trait Implementations§
Source§impl Clone for WorktreeSnapshot
impl Clone for WorktreeSnapshot
Source§fn clone(&self) -> WorktreeSnapshot
fn clone(&self) -> WorktreeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorktreeSnapshot
impl Debug for WorktreeSnapshot
impl Eq for WorktreeSnapshot
Source§impl From<&Worktree> for WorktreeSnapshot
impl From<&Worktree> for WorktreeSnapshot
Source§impl PartialEq for WorktreeSnapshot
impl PartialEq for WorktreeSnapshot
Source§fn eq(&self, other: &WorktreeSnapshot) -> bool
fn eq(&self, other: &WorktreeSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorktreeSnapshot
impl Serialize for WorktreeSnapshot
impl StructuralPartialEq for WorktreeSnapshot
Auto Trait Implementations§
impl Freeze for WorktreeSnapshot
impl RefUnwindSafe for WorktreeSnapshot
impl Send for WorktreeSnapshot
impl Sync for WorktreeSnapshot
impl Unpin for WorktreeSnapshot
impl UnsafeUnpin for WorktreeSnapshot
impl UnwindSafe for WorktreeSnapshot
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