pub struct FileUploadOptions {
pub base: UploadOptions,
pub size: Option<u64>,
pub content_type: Option<String>,
pub redundancy_level: Option<RedundancyLevel>,
}Expand description
File-specific upload options for POST /bzz. Mirrors bee-go
FileUploadOptions.
Fields§
§base: UploadOptionsInherited base options.
size: Option<u64>Explicit Content-Length (use when uploading from a stream of
unknown length).
content_type: Option<String>Explicit Content-Type.
redundancy_level: Option<RedundancyLevel>Redundancy level (Off omits the header).
Trait Implementations§
Source§impl Clone for FileUploadOptions
impl Clone for FileUploadOptions
Source§fn clone(&self) -> FileUploadOptions
fn clone(&self) -> FileUploadOptions
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 FileUploadOptions
impl Debug for FileUploadOptions
Source§impl Default for FileUploadOptions
impl Default for FileUploadOptions
Source§fn default() -> FileUploadOptions
fn default() -> FileUploadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileUploadOptions
impl RefUnwindSafe for FileUploadOptions
impl Send for FileUploadOptions
impl Sync for FileUploadOptions
impl Unpin for FileUploadOptions
impl UnsafeUnpin for FileUploadOptions
impl UnwindSafe for FileUploadOptions
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