pub enum ConfigMutation {
UpsertSource {
name: SourceName,
entry: SourceEntry,
},
RemoveSource {
name: SourceName,
},
SetOverride {
source_name: SourceName,
local_path: PathBuf,
},
ClearOverride {
source_name: SourceName,
},
SetRename {
source_name: SourceName,
from: String,
to: String,
},
SetLink {
target: String,
},
ClearLink {
target: String,
},
}Expand description
Config mutation to apply atomically under flock.
Variants§
UpsertSource
Add or update a source in mars.toml.
RemoveSource
Remove a source from mars.toml.
Fields
§
name: SourceNameSetOverride
Add or update an override in mars.local.toml.
ClearOverride
Remove an override from mars.local.toml.
Fields
§
source_name: SourceNameSetRename
Set or update a rename mapping for one managed item.
SetLink
Add a link target to settings.links (idempotent).
ClearLink
Remove a link target from settings.links.
Trait Implementations§
Source§impl Clone for ConfigMutation
impl Clone for ConfigMutation
Source§fn clone(&self) -> ConfigMutation
fn clone(&self) -> ConfigMutation
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 ConfigMutation
impl RefUnwindSafe for ConfigMutation
impl Send for ConfigMutation
impl Sync for ConfigMutation
impl Unpin for ConfigMutation
impl UnsafeUnpin for ConfigMutation
impl UnwindSafe for ConfigMutation
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