pub struct ScanOptions<'a> {
pub glob: &'a str,
pub max_tasks: usize,
pub absolute_paths: bool,
pub locale: &'a str,
}Expand description
Inputs to scan_directory. The defaults match the CLI’s own defaults, so
an embedder that only wants “scan this directory the way the tool does”
writes ScanOptions::default().
Fields§
§glob: &'a strFile-name / relative-path glob, as --glob. Defaults to *.md.
max_tasks: usizeUpper bound on collected tasks, as --max-tasks. Reaching it stops the
walk and sets ProcessingStats::max_tasks_reached.
absolute_paths: boolEmit absolute paths in Task::file instead of paths relative to the
scanned root, as --absolute-paths.
locale: &'a strComma-separated locale list for weekday-name normalization, as
--locale. Defaults to ru,en; see crate::locale.
Trait Implementations§
Source§impl<'a> Clone for ScanOptions<'a>
impl<'a> Clone for ScanOptions<'a>
Source§fn clone(&self) -> ScanOptions<'a>
fn clone(&self) -> ScanOptions<'a>
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 moreimpl<'a> Copy for ScanOptions<'a>
Source§impl<'a> Debug for ScanOptions<'a>
impl<'a> Debug for ScanOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScanOptions<'a>
impl<'a> RefUnwindSafe for ScanOptions<'a>
impl<'a> Send for ScanOptions<'a>
impl<'a> Sync for ScanOptions<'a>
impl<'a> Unpin for ScanOptions<'a>
impl<'a> UnsafeUnpin for ScanOptions<'a>
impl<'a> UnwindSafe for ScanOptions<'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