pub struct PathCtx {
pub cwd: Option<String>,
pub root: Option<String>,
pub session_id: Option<String>,
}Expand description
The working directory and project root for the command under evaluation. Both optional: a harness may supply neither (e.g. opencode), and classification falls back to the relative-is-worktree assumption.
Fields§
§cwd: Option<String>§root: Option<String>§session_id: Option<String>The harness’s session id, when it supplies one. Only used to recognize this session’s
SCRATCHPAD — see in_session_scratchpad.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathCtx
impl RefUnwindSafe for PathCtx
impl Send for PathCtx
impl Sync for PathCtx
impl Unpin for PathCtx
impl UnsafeUnpin for PathCtx
impl UnwindSafe for PathCtx
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