pub struct DownloadOptions {
pub speed_limit: Option<u64>,
pub resume: bool,
pub format: Option<String>,
pub progress_callback: Option<Box<dyn Fn(u64, Option<u64>) + Send + 'static>>,
}Expand description
Options for download operations
Fields§
§speed_limit: Option<u64>Speed limit in bytes per second (None = unlimited)
resume: boolEnable resume mode
format: Option<String>Export format for Google Docs/Sheets/Slides
progress_callback: Option<Box<dyn Fn(u64, Option<u64>) + Send + 'static>>Progress callback (bytes_downloaded, total_bytes)
Trait Implementations§
Source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
Auto Trait Implementations§
impl Freeze for DownloadOptions
impl !RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl !Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnsafeUnpin for DownloadOptions
impl !UnwindSafe for DownloadOptions
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