pub struct FileTreeViewConfig {
pub show_hidden: bool,
pub builtin_excludes: bool,
pub extra_excludes: Vec<String>,
pub include: Vec<String>,
pub respect_gitignore: bool,
}Expand description
Persistent filter preferences for FileTreeView, loaded from the
optional [file_tree_view] section of apimock.toml.
When the section is absent, FileTreeViewConfig::default() is used,
which mirrors apimock_routing::view::build::FileTreeFilter::default():
dotfiles hidden, built-in excludes on, no extra filters, gitignore off.
Fields§
Show dotfiles and dot-directories (default: false).
builtin_excludes: boolApply the built-in exclude list (target, node_modules, etc.)
(default: true).
extra_excludes: Vec<String>Glob patterns for additional exclusions (RFC 019).
Each entry is matched against the entry’s file_name() only.
Supports standard glob syntax (*, ?, […]). A trailing /
restricts the pattern to directories. Pre-5.11 exact-name entries
continue to work because a bare name is a valid glob.
include: Vec<String>If non-empty, only files whose name matches at least one of these
glob patterns are shown. Directories always pass the include filter
so the user can drill into them. (default: [] — show everything)
respect_gitignore: boolParse .gitignore files in the tree root and its ancestors,
applying Git-compatible ignore rules (RFC 019). (default: false)
Implementations§
Source§impl FileTreeViewConfig
impl FileTreeViewConfig
Sourcepub fn to_filter(&self) -> FileTreeFilter
pub fn to_filter(&self) -> FileTreeFilter
Convert to the routing crate’s FileTreeFilter.
Trait Implementations§
Source§impl Clone for FileTreeViewConfig
impl Clone for FileTreeViewConfig
Source§fn clone(&self) -> FileTreeViewConfig
fn clone(&self) -> FileTreeViewConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more