pub struct CheckOptions {
pub allow_dirty: bool,
pub allow_no_vcs: bool,
pub allow_staged: bool,
}
Expand description
Stores the options available for calling check_version_control
and controls which checks if any are run
Fields§
§allow_dirty: bool
Does not return an error for dirty files nor generate the list of said files
allow_no_vcs: bool
This option basically disables checking. If true no checks are done. (Not even if the path
exists)
allow_staged: bool
Does not return an error for staged files nor generate the list of said files
Implementations§
Source§impl CheckOptions
impl CheckOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a CheckOptions
with default values
Trait Implementations§
Source§impl Clone for CheckOptions
impl Clone for CheckOptions
Source§fn clone(&self) -> CheckOptions
fn clone(&self) -> CheckOptions
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 CheckOptions
impl Debug for CheckOptions
Source§impl Default for CheckOptions
impl Default for CheckOptions
Source§fn default() -> CheckOptions
fn default() -> CheckOptions
Returns the “default value” for a type. Read more
Source§impl Hash for CheckOptions
impl Hash for CheckOptions
Source§impl Ord for CheckOptions
impl Ord for CheckOptions
Source§fn cmp(&self, other: &CheckOptions) -> Ordering
fn cmp(&self, other: &CheckOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CheckOptions
impl PartialEq for CheckOptions
Source§impl PartialOrd for CheckOptions
impl PartialOrd for CheckOptions
impl Copy for CheckOptions
impl Eq for CheckOptions
impl StructuralPartialEq for CheckOptions
Auto Trait Implementations§
impl Freeze for CheckOptions
impl RefUnwindSafe for CheckOptions
impl Send for CheckOptions
impl Sync for CheckOptions
impl Unpin for CheckOptions
impl UnwindSafe for CheckOptions
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