pub struct MarsContext {
pub project_root: PathBuf,
pub managed_root: PathBuf,
}Expand description
Resolved context for a mars command — project root + managed output root.
Named fields prevent argument-order bugs that plague (project_root, managed_root) pairs.
Fields§
§project_root: PathBufProject root containing mars.toml and mars.lock.
managed_root: PathBufManaged output directory (e.g. /project/.agents).
Implementations§
Source§impl MarsContext
impl MarsContext
Trait Implementations§
Source§impl Clone for MarsContext
impl Clone for MarsContext
Source§fn clone(&self) -> MarsContext
fn clone(&self) -> MarsContext
Returns a duplicate of the value. Read more
1.0.0 · 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 MarsContext
impl RefUnwindSafe for MarsContext
impl Send for MarsContext
impl Sync for MarsContext
impl Unpin for MarsContext
impl UnsafeUnpin for MarsContext
impl UnwindSafe for MarsContext
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