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: boolDoes not return an error for dirty files nor generate the list of said files
allow_no_vcs: boolThis option basically disables checking. If true no checks are done. (Not even if the path exists)
allow_staged: boolDoes 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 copy 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§fn eq(&self, other: &CheckOptions) -> bool
fn eq(&self, other: &CheckOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CheckOptions
impl PartialOrd for CheckOptions
source§fn partial_cmp(&self, other: &CheckOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &CheckOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for CheckOptions
impl Eq for CheckOptions
impl StructuralPartialEq for CheckOptions
Auto Trait Implementations§
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