Struct watchexec::ignore::IgnoreFile
source · [−]pub struct IgnoreFile {
pub path: PathBuf,
pub applies_in: Option<PathBuf>,
pub applies_to: Option<ProjectType>,
}
Expand description
An ignore file.
This records both the path to the ignore file and some basic metadata about it: which project
type it applies to if any, and which subtree it applies in if any (None
= global ignore file).
Fields
path: PathBuf
The path to the ignore file.
applies_in: Option<PathBuf>
The path to the subtree the ignore file applies to, or None
for global ignores.
applies_to: Option<ProjectType>
Which project type the ignore file applies to, or was found through.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for IgnoreFile
impl Send for IgnoreFile
impl Sync for IgnoreFile
impl Unpin for IgnoreFile
impl UnwindSafe for IgnoreFile
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more