pub enum DangerPolicy {
Skip,
Abort,
Allow,
}Expand description
Policy for handling dangerous (destructive) commands during replay.
Used by CI/CD pipelines and non-interactive environments to control how destructive commands are handled without requiring TTY interaction.
When None is used in ReplayOptions, the existing interactive behavior
is preserved (prompt in TTY, auto-skip in non-interactive).
Variants§
Skip
Skip dangerous commands with warnings
Abort
Scan for dangerous commands and abort without executing
Allow
Execute all commands including dangerous ones
Trait Implementations§
Source§impl Clone for DangerPolicy
impl Clone for DangerPolicy
Source§fn clone(&self) -> DangerPolicy
fn clone(&self) -> DangerPolicy
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 moreSource§impl Debug for DangerPolicy
impl Debug for DangerPolicy
Source§impl PartialEq for DangerPolicy
impl PartialEq for DangerPolicy
Source§impl ValueEnum for DangerPolicy
impl ValueEnum for DangerPolicy
impl Copy for DangerPolicy
impl Eq for DangerPolicy
impl StructuralPartialEq for DangerPolicy
Auto Trait Implementations§
impl Freeze for DangerPolicy
impl RefUnwindSafe for DangerPolicy
impl Send for DangerPolicy
impl Sync for DangerPolicy
impl Unpin for DangerPolicy
impl UnwindSafe for DangerPolicy
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§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.