pub struct CollectionUploadOptions {
pub base: UploadOptions,
pub index_document: Option<String>,
pub error_document: Option<String>,
pub redundancy_level: Option<RedundancyLevel>,
pub on_entry: Option<OnEntryFn>,
}Expand description
Collection upload options for tar POST /bzz. Mirrors bee-go
CollectionUploadOptions and bee-js streamDirectory opts.
Fields§
§base: UploadOptionsInherited base options.
index_document: Option<String>Document served when the collection root is requested.
error_document: Option<String>Document served when a path inside the collection is missing.
redundancy_level: Option<RedundancyLevel>Redundancy level (Off omits the header).
on_entry: Option<OnEntryFn>Per-entry progress callback. Invoked once per entry before the collection is packed and uploaded — useful for surfacing what is about to be sent without waiting for completion.
Implementations§
Source§impl CollectionUploadOptions
impl CollectionUploadOptions
Sourcepub fn with_on_entry<F>(self, f: F) -> Self
pub fn with_on_entry<F>(self, f: F) -> Self
Set the per-entry progress callback. Builder convenience for
callers that don’t want to construct the OnEntryFn type
themselves.
Trait Implementations§
Source§impl Clone for CollectionUploadOptions
impl Clone for CollectionUploadOptions
Source§fn clone(&self) -> CollectionUploadOptions
fn clone(&self) -> CollectionUploadOptions
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 CollectionUploadOptions
impl Debug for CollectionUploadOptions
Source§impl Default for CollectionUploadOptions
impl Default for CollectionUploadOptions
Source§fn default() -> CollectionUploadOptions
fn default() -> CollectionUploadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CollectionUploadOptions
impl !RefUnwindSafe for CollectionUploadOptions
impl Send for CollectionUploadOptions
impl Sync for CollectionUploadOptions
impl Unpin for CollectionUploadOptions
impl UnsafeUnpin for CollectionUploadOptions
impl !UnwindSafe for CollectionUploadOptions
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