Skip to main content

RetiredTarget

Struct RetiredTarget 

Source
pub struct RetiredTarget {
    pub dir: &'static str,
    pub anchor: &'static str,
    pub mcp_path: &'static str,
    pub mcp_section: &'static str,
    pub hook_file: &'static str,
    pub hook_file_keys: &'static [&'static str],
    pub plugin_root_file: &'static str,
    pub plugin_catalog_directory: &'static str,
}
Expand description

A target directory Mars no longer writes. Sync leaves it and what it recorded there alone; mars unlink removes what the lock records, which for the config files below is the entries Mars added, not the files.

Fields§

§dir: &'static str§anchor: &'static str

The anchor on retired-keys.md.

§mcp_path: &'static str

The JSON file, from the project root, that held MCP servers, and the object in it.

§mcp_section: &'static str§hook_file: &'static str

The file under dir that held hook entries, under a hooks object.

§hook_file_keys: &'static [&'static str]

Keys Mars wrote beside hooks; a file holding only these is empty and mars unlink deletes it.

§plugin_root_file: &'static str

The marketplace file and its directory, from the package root, that a plugin build generated. A sentinel an older Mars wrote still records them; a rebuild deletes them.

§plugin_catalog_directory: &'static str

Implementations§

Source§

impl RetiredTarget

Source

pub fn message(&self, unlink: &str) -> String

What a project that links this target is told; unlink is the command that removes it.

Auto Trait Implementations§

§

impl Forget for RetiredTarget

§

impl Freeze for RetiredTarget
where &'static str: Freeze, &'static [&'static str]: Freeze,

§

impl Move for RetiredTarget

§

impl RefUnwindSafe for RetiredTarget

§

impl Send for RetiredTarget
where &'static str: Send, &'static [&'static str]: Send,

§

impl Sync for RetiredTarget

§

impl Unpin for RetiredTarget
where &'static str: Unpin, &'static [&'static str]: Unpin,

§

impl UnsafeUnpin for RetiredTarget
where &'static str: UnsafeUnpin, &'static [&'static str]: UnsafeUnpin,

§

impl UnwindSafe for RetiredTarget
where &'static str: UnwindSafe, &'static [&'static str]: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.