#[non_exhaustive]pub struct TreeOptions {
pub max_depth: Option<u32>,
pub follow_symlinks: bool,
}Expand description
Options controlling recursive tree traversal.
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.max_depth: Option<u32>The maximum depth below the requested path, subject to backend limits.
follow_symlinks: boolWhether traversal follows symbolic links.
Implementations§
Source§impl TreeOptions
impl TreeOptions
Trait Implementations§
Source§impl Clone for TreeOptions
impl Clone for TreeOptions
Source§fn clone(&self) -> TreeOptions
fn clone(&self) -> TreeOptions
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 moreimpl Copy for TreeOptions
Source§impl Debug for TreeOptions
impl Debug for TreeOptions
Source§impl Default for TreeOptions
impl Default for TreeOptions
Source§fn default() -> TreeOptions
fn default() -> TreeOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TreeOptions
impl<'de> Deserialize<'de> for TreeOptions
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
impl Eq for TreeOptions
Source§impl PartialEq for TreeOptions
impl PartialEq for TreeOptions
Source§impl Serialize for TreeOptions
impl Serialize for TreeOptions
impl StructuralPartialEq for TreeOptions
Auto Trait Implementations§
impl Freeze for TreeOptions
impl RefUnwindSafe for TreeOptions
impl Send for TreeOptions
impl Sync for TreeOptions
impl Unpin for TreeOptions
impl UnsafeUnpin for TreeOptions
impl UnwindSafe for TreeOptions
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