pub struct IgnorePolicy {
pub parent_rules: bool,
pub git_ignore: bool,
pub dot_ignore: bool,
pub custom_ignore: bool,
pub git_exclude: bool,
pub git_global: bool,
pub require_git: bool,
pub explicit_files: Vec<PathBuf>,
}Expand description
Controls every supported source of repository selection rules.
The default is repository-local and reproducible. Use Self::git_compatible
when matching the current machine’s Git configuration is more important
than producing a portable manifest.
Fields§
§parent_rules: bool§git_ignore: bool§dot_ignore: bool§custom_ignore: bool§git_exclude: bool§git_global: bool§require_git: boolApply Git-specific sources only when a repository root is present.
explicit_files: Vec<PathBuf>Implementations§
Source§impl IgnorePolicy
impl IgnorePolicy
pub const fn repository() -> Self
pub const fn git_compatible() -> Self
pub const fn with_parent_rules(self, enabled: bool) -> Self
pub const fn with_git_ignore(self, enabled: bool) -> Self
pub const fn with_dot_ignore(self, enabled: bool) -> Self
pub const fn with_custom_ignore(self, enabled: bool) -> Self
pub const fn with_git_exclude(self, enabled: bool) -> Self
pub const fn with_git_global(self, enabled: bool) -> Self
pub const fn with_require_git(self, enabled: bool) -> Self
pub fn with_explicit_file(self, path: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for IgnorePolicy
impl Clone for IgnorePolicy
Source§fn clone(&self) -> IgnorePolicy
fn clone(&self) -> IgnorePolicy
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 moreSource§impl Debug for IgnorePolicy
impl Debug for IgnorePolicy
Source§impl Default for IgnorePolicy
impl Default for IgnorePolicy
impl Eq for IgnorePolicy
Source§impl PartialEq for IgnorePolicy
impl PartialEq for IgnorePolicy
impl StructuralPartialEq for IgnorePolicy
Auto Trait Implementations§
impl Freeze for IgnorePolicy
impl RefUnwindSafe for IgnorePolicy
impl Send for IgnorePolicy
impl Sync for IgnorePolicy
impl Unpin for IgnorePolicy
impl UnsafeUnpin for IgnorePolicy
impl UnwindSafe for IgnorePolicy
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