pub struct WorktreeCleanupResult {
pub path: PathBuf,
pub branch: String,
pub action: CleanupAction,
pub reason: String,
pub error: Option<String>,
pub safety_violations: Vec<SafetyViolation>,
}Fields§
§path: PathBufPath to the worktree
branch: StringBranch name
action: CleanupActionCleanup action taken
reason: StringReason for the action (or why it was skipped)
error: Option<String>Any error that occurred
safety_violations: Vec<SafetyViolation>Safety violations that were ignored (if force was used)
Trait Implementations§
Source§impl Clone for WorktreeCleanupResult
impl Clone for WorktreeCleanupResult
Source§fn clone(&self) -> WorktreeCleanupResult
fn clone(&self) -> WorktreeCleanupResult
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 WorktreeCleanupResult
impl Debug for WorktreeCleanupResult
Source§impl<'de> Deserialize<'de> for WorktreeCleanupResult
impl<'de> Deserialize<'de> for WorktreeCleanupResult
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
Auto Trait Implementations§
impl Freeze for WorktreeCleanupResult
impl RefUnwindSafe for WorktreeCleanupResult
impl Send for WorktreeCleanupResult
impl Sync for WorktreeCleanupResult
impl Unpin for WorktreeCleanupResult
impl UnsafeUnpin for WorktreeCleanupResult
impl UnwindSafe for WorktreeCleanupResult
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