#[non_exhaustive]pub struct FileTreeView {
pub root_path: String,
pub entries: Vec<FileNodeView>,
}Expand description
Top-level view of the fallback respond directory, depth-1 eager.
§Why depth-1 and not full recursion
Fallback dirs in real projects can hold thousands of files; full
recursive enumeration would make snapshot() expensive. The
Workspace provides a separate list_directory(parent_id) API
the GUI calls when a user clicks to expand a subdirectory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root_path: StringAbsolute path to the fallback respond directory.
entries: Vec<FileNodeView>Direct children of root_path. Subdirectories carry no
children (children: None) — the embedder loads them on demand.
Trait Implementations§
Source§impl Clone for FileTreeView
impl Clone for FileTreeView
Source§fn clone(&self) -> FileTreeView
fn clone(&self) -> FileTreeView
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 FileTreeView
impl Debug for FileTreeView
Auto Trait Implementations§
impl Freeze for FileTreeView
impl RefUnwindSafe for FileTreeView
impl Send for FileTreeView
impl Sync for FileTreeView
impl Unpin for FileTreeView
impl UnsafeUnpin for FileTreeView
impl UnwindSafe for FileTreeView
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