pub struct FileUploadOptions {
pub large_file_cutoff: u64,
pub file_load_strategy: LargeFileLoadStrategy,
pub speed_throttle: Option<Throttle<u64>>,
pub retry_strategy: RetryStrategy,
pub options: B2FileUploadSettings,
}Expand description
File upload options
Fields§
§large_file_cutoff: u64Cut off point for the file to count as a big file, from 5 Mib - 5 Gib.
Default is 200 Mib.
file_load_strategy: LargeFileLoadStrategyThe large file load strategy, refer to ConstantLargeFileLoadStrategy to find how they work.
Defaults to LargeFileLoadStrategy::Dynamic(DefaultLargeFileLoadStrategy)
speed_throttle: Option<Throttle<u64>>Upload speed throttle, can be used as
// Translates to a MiBPS upload speed limit
let throttle = Throttle::per_second(SizeUnit::MEBIBYTE * 5);
Default is None.
retry_strategy: RetryStrategyRetry strategy on request failure.
Defaults to RetryStrategy::Dynamic(crate::util::DefaultRetryStrategy).
options: B2FileUploadSettingsThe extra file upload options B2 provides
Check default for B2FileUploadSettings
Trait Implementations§
Source§impl Debug for FileUploadOptions
impl Debug for FileUploadOptions
Source§impl Default for FileUploadOptions
impl Default for FileUploadOptions
Source§impl IsValid for FileUploadOptions
impl IsValid for FileUploadOptions
Auto Trait Implementations§
impl Freeze for FileUploadOptions
impl !RefUnwindSafe for FileUploadOptions
impl Send for FileUploadOptions
impl Sync for FileUploadOptions
impl Unpin 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