pub struct FanoutInfo {
pub wip_branch: String,
pub worktree_name: String,
pub worktree_path: PathBuf,
pub parent_tip: Oid,
pub main_branch: String,
}Expand description
Stateless handle to an open fan-out scratch worktree — everything needed
to merge OR abandon the fan-out later, without holding a borrowed
FanoutWorktree across the wait (e.g. between MCP tool calls).
Returned by VaultRepo::open_fanout_worktree; consumed by
VaultRepo::merge_fanout_back and VaultRepo::abandon_fanout_by_info.
The MCP layer uses this triple; the in-process programmatic API
(FanoutWorktree) wraps the same info for ergonomic borrowing.
Fields§
§wip_branch: String§worktree_name: String§worktree_path: PathBuf§parent_tip: Oid§main_branch: StringTrait Implementations§
Source§impl Clone for FanoutInfo
impl Clone for FanoutInfo
Source§fn clone(&self) -> FanoutInfo
fn clone(&self) -> FanoutInfo
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 moreAuto Trait Implementations§
impl Freeze for FanoutInfo
impl RefUnwindSafe for FanoutInfo
impl Send for FanoutInfo
impl Sync for FanoutInfo
impl Unpin for FanoutInfo
impl UnsafeUnpin for FanoutInfo
impl UnwindSafe for FanoutInfo
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