pub struct FileTreeViewConfig {
pub show_hidden: bool,
pub builtin_excludes: bool,
pub extra_excludes: Vec<String>,
pub include: Vec<String>,
}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.
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>Additional entry names to exclude (exact match on file_name()).
include: Vec<String>If non-empty, only files whose name ends with one of these suffixes
are shown. Directories always pass the include filter so the user
can drill into them. (default: [] — show everything)
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
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 moreSource§impl Debug for FileTreeViewConfig
impl Debug for FileTreeViewConfig
Source§impl Default for FileTreeViewConfig
impl Default for FileTreeViewConfig
Source§impl<'de> Deserialize<'de> for FileTreeViewConfig
impl<'de> Deserialize<'de> for FileTreeViewConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileTreeViewConfig
impl RefUnwindSafe for FileTreeViewConfig
impl Send for FileTreeViewConfig
impl Sync for FileTreeViewConfig
impl Unpin for FileTreeViewConfig
impl UnsafeUnpin for FileTreeViewConfig
impl UnwindSafe for FileTreeViewConfig
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