pub struct Options {
pub root: PathBuf,
pub min_size: u64,
pub size_mode: SizeMode,
pub one_file_system: bool,
pub older_than: Option<Duration>,
pub ignored_files: bool,
pub excludes: Arc<Gitignore>,
}Expand description
Everything the front end needs from the command line.
Fields§
§root: PathBufThe directory to scan.
min_size: u64The size floor for the fallback tier.
size_mode: SizeModeHow hard to work for each claim’s size. See the module docs for why the default here is not the default for the listing.
one_file_system: boolWhether to stay on one filesystem — for the walk and for the planner, which is a safety property rather than a tidiness one.
older_than: Option<Duration>Keep anything touched more recently than this.
ignored_files: boolWhether the view opens with gitignored files on screen.
The walk claims them whatever this says — i is what a reader presses, and a key that
found nothing until the scan was run again would not be one. This is only where the lens
starts, so that --ignored-files means the same thing here as it does to the listing.
excludes: Arc<Gitignore>Paths the reader has said never to walk into. See crate::Walker::excludes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
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> ⓘ
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> ⓘ
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