pub struct OutputRecord {
pub target_root: String,
pub dest_path: DestPath,
pub state: OutputState,
}Expand description
A single path owned by Mars, with its lifecycle claim made explicit.
Fields§
§target_root: StringTarget root this output belongs to (e.g., “.mars”, “.claude”).
dest_path: DestPathRelative path under the target root (e.g., “agents/coder.md”).
state: OutputStateWhat authority this record currently asserts for the path.
Implementations§
Source§impl OutputRecord
impl OutputRecord
pub fn installed( target_root: String, dest_path: DestPath, installed_checksum: ContentHash, ) -> Self
pub fn pending_deletion( target_root: impl Into<String>, dest_path: impl Into<DestPath>, ) -> Self
pub fn installed_checksum(&self) -> Option<&ContentHash>
pub fn mark_installed(&mut self, installed_checksum: ContentHash)
pub fn mark_pending_deletion(&mut self)
Trait Implementations§
Source§impl Clone for OutputRecord
impl Clone for OutputRecord
Source§fn clone(&self) -> OutputRecord
fn clone(&self) -> OutputRecord
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 OutputRecord
impl Debug for OutputRecord
Source§impl<'de> Deserialize<'de> for OutputRecord
impl<'de> Deserialize<'de> for OutputRecord
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
Source§impl PartialEq for OutputRecord
impl PartialEq for OutputRecord
Source§impl Serialize for OutputRecord
impl Serialize for OutputRecord
impl StructuralPartialEq for OutputRecord
Auto Trait Implementations§
impl Freeze for OutputRecord
impl RefUnwindSafe for OutputRecord
impl Send for OutputRecord
impl Sync for OutputRecord
impl Unpin for OutputRecord
impl UnsafeUnpin for OutputRecord
impl UnwindSafe for OutputRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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