Struct rust_unixfs::dir::builder::TreeOptions
source · pub struct TreeOptions { /* private fields */ }
Expand description
Configuration for customizing how the tree is built.
Implementations§
source§impl TreeOptions
impl TreeOptions
sourcepub fn block_size_limit(&mut self, limit: Option<u64>)
pub fn block_size_limit(&mut self, limit: Option<u64>)
Overrides the default directory block size limit. If the size limit is set to None
, no
directory will be too large.
sourcepub fn wrap_with_directory(&mut self)
pub fn wrap_with_directory(&mut self)
When true, allow multiple top level entries, otherwise error on the second entry. Defaults to false.
Trait Implementations§
source§impl Clone for TreeOptions
impl Clone for TreeOptions
source§fn clone(&self) -> TreeOptions
fn clone(&self) -> TreeOptions
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 TreeOptions
impl Debug for TreeOptions
Auto Trait Implementations§
impl RefUnwindSafe for TreeOptions
impl Send for TreeOptions
impl Sync for TreeOptions
impl Unpin 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