pub struct MarsContext {
pub project_root: PathBuf,
pub managed_root: PathBuf,
pub meridian_managed: bool,
}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 (legacy/explicit target, e.g. /project/.claude).
meridian_managed: boolWhether mars is running under Meridian management.
Captured at context construction time so compilation decisions are stable for the duration of a sync.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more