pub enum WritePolicy {
Force,
SkipExisting,
Append,
}Expand description
How to resolve a plain file that already exists on disk.
The MCP merge is always performed regardless of policy (it is safe and
idempotent — only the bears key is touched).
Variants§
Force
Overwrite every plain file unconditionally.
SkipExisting
Write only files that do not yet exist; leave existing ones untouched.
Append
Append template content to an existing instruction file; non-instruction
files are treated as Force.
Trait Implementations§
Source§impl Clone for WritePolicy
impl Clone for WritePolicy
Source§fn clone(&self) -> WritePolicy
fn clone(&self) -> WritePolicy
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 moreimpl Copy for WritePolicy
Source§impl Debug for WritePolicy
impl Debug for WritePolicy
impl Eq for WritePolicy
Source§impl PartialEq for WritePolicy
impl PartialEq for WritePolicy
impl StructuralPartialEq for WritePolicy
Auto Trait Implementations§
impl Freeze for WritePolicy
impl RefUnwindSafe for WritePolicy
impl Send for WritePolicy
impl Sync for WritePolicy
impl Unpin for WritePolicy
impl UnsafeUnpin for WritePolicy
impl UnwindSafe for WritePolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.