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 more