pub struct SanityOptions {
pub auto_fix: bool,
pub skip: bool,
pub non_interactive: bool,
}Expand description
Options for controlling sanity check behavior.
Fields§
§auto_fix: boolAuto-approve all fixes without prompting.
skip: boolSkip all sanity checks.
non_interactive: boolSkip interactive prompts even if running in a TTY.
Implementations§
Source§impl SanityOptions
impl SanityOptions
Sourcepub fn can_prompt(&self) -> bool
pub fn can_prompt(&self) -> bool
Check if we can prompt the user for input.
Trait Implementations§
Source§impl Clone for SanityOptions
impl Clone for SanityOptions
Source§fn clone(&self) -> SanityOptions
fn clone(&self) -> SanityOptions
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 SanityOptions
impl Debug for SanityOptions
Source§impl Default for SanityOptions
impl Default for SanityOptions
Source§fn default() -> SanityOptions
fn default() -> SanityOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SanityOptions
impl RefUnwindSafe for SanityOptions
impl Send for SanityOptions
impl Sync for SanityOptions
impl Unpin for SanityOptions
impl UnsafeUnpin for SanityOptions
impl UnwindSafe for SanityOptions
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