pub struct WalkOptions<'a> {
pub ignore_filename: &'a str,
pub ignore_hidden: bool,
pub honor_gitignore: bool,
pub filter_fn: Option<&'static (dyn Fn(&DirEntry) -> bool + Send + Sync + 'static)>,
}
Expand description
WalkOptions
specifies how an Obsidian vault directory is scanned for eligible files to export.
Fields§
§ignore_filename: &'a str
The filename for ignore files, following the gitignore syntax.
By default .export-ignore
is used.
Whether to ignore hidden files.
This is enabled by default.
honor_gitignore: bool
Whether to honor git’s ignore rules (.gitignore
files, .git/config/exclude
, etc) if
the target is within a git repository.
This is enabled by default.
filter_fn: Option<&'static (dyn Fn(&DirEntry) -> bool + Send + Sync + 'static)>
An optional custom filter function which is called for each directory entry to determine if it should be included or not.
This is passed to ignore::WalkBuilder::filter_entry
.
Implementations§
Source§impl<'a> WalkOptions<'a>
impl<'a> WalkOptions<'a>
Trait Implementations§
Source§impl<'a> Clone for WalkOptions<'a>
impl<'a> Clone for WalkOptions<'a>
Source§fn clone(&self) -> WalkOptions<'a>
fn clone(&self) -> WalkOptions<'a>
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<'a> Debug for WalkOptions<'a>
impl<'a> Debug for WalkOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for WalkOptions<'a>
impl<'a> !RefUnwindSafe for WalkOptions<'a>
impl<'a> Send for WalkOptions<'a>
impl<'a> Sync for WalkOptions<'a>
impl<'a> Unpin for WalkOptions<'a>
impl<'a> !UnwindSafe for WalkOptions<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more