pub enum PlanAction {
Symlink {
entry_id: String,
source: PathBuf,
dest: PathBuf,
link_mode: SymlinkLinkMode,
requires_backup: bool,
},
ManagedBlock {
entry_id: String,
config_file: PathBuf,
surface: String,
comment_style: CommentStyle,
body: String,
},
}Expand description
Single executable step the apply executor will run.
Variants§
Symlink
Replace dest with a symlink pointing at source. Idempotent
when dest already points at source. Pre-existing regular files
at dest are backed up into <state_home>/backups/... first.
Fields
§
link_mode: SymlinkLinkModeManagedBlock
Write or replace a managed block in a config file.
Trait Implementations§
Source§impl Clone for PlanAction
impl Clone for PlanAction
Auto Trait Implementations§
impl Freeze for PlanAction
impl RefUnwindSafe for PlanAction
impl Send for PlanAction
impl Sync for PlanAction
impl Unpin for PlanAction
impl UnsafeUnpin for PlanAction
impl UnwindSafe for PlanAction
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