pub struct FileTreeOptions {
pub include_hidden: bool,
pub max_depth: usize,
pub reveal_selected: bool,
pub load_mode: FileTreeLoadMode,
pub exclude_defaults: bool,
pub max_entries_per_directory: Option<usize>,
pub large_directory_policy: LargeDirectoryPolicy,
pub symlink_traversal_policy: SymlinkTraversalPolicy,
}Expand description
Complete policy snapshot for synchronous or asynchronous tree loading.
§Examples
use ailloli_ui_widgets::files::{FileTreeLoadMode, FileTreeOptions, LargeDirectoryPolicy};
let options = FileTreeOptions::default();
assert_eq!(options.max_depth, 8);
assert_eq!(options.load_mode, FileTreeLoadMode::Lazy);
assert_eq!(options.large_directory_policy, LargeDirectoryPolicy::Load);Fields§
Includes dot-prefixed names when true; selected ancestors always survive.
max_depth: usizeHard maximum directory depth; root is depth zero and is not read at zero.
reveal_selected: boolKeeps and loads ancestors of selected even when hidden/excluded.
load_mode: FileTreeLoadModeProactive directory traversal policy.
exclude_defaults: boolExcludes common heavy directories unless they contain selection.
max_entries_per_directory: Option<usize>Optional post-filter/post-sort entry cap per directory.
large_directory_policy: LargeDirectoryPolicyWhether the optional entry cap is enforced or ignored.
symlink_traversal_policy: SymlinkTraversalPolicyRules for reading directory-like symlinks.
Trait Implementations§
Source§impl Clone for FileTreeOptions
impl Clone for FileTreeOptions
Source§fn clone(&self) -> FileTreeOptions
fn clone(&self) -> FileTreeOptions
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 Debug for FileTreeOptions
impl Debug for FileTreeOptions
Source§impl Default for FileTreeOptions
Uses lazy visible-only loading, depth eight, hidden filtering, and no cap.
impl Default for FileTreeOptions
Uses lazy visible-only loading, depth eight, hidden filtering, and no cap.
Source§impl PartialEq for FileTreeOptions
impl PartialEq for FileTreeOptions
impl Copy for FileTreeOptions
impl Eq for FileTreeOptions
impl StructuralPartialEq for FileTreeOptions
Auto Trait Implementations§
impl Freeze for FileTreeOptions
impl RefUnwindSafe for FileTreeOptions
impl Send for FileTreeOptions
impl Sync for FileTreeOptions
impl Unpin for FileTreeOptions
impl UnwindSafe for FileTreeOptions
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.