pub struct DownloadArgs {
pub url: String,
pub max_bytes: u64,
pub timeout: Duration,
pub follow_redirects: bool,
pub headers: HashMap<String, String>,
}Expand description
Parsed download arguments.
Fields§
§url: String§max_bytes: u64§timeout: Duration§follow_redirects: bool§headers: HashMap<String, String>Implementations§
Source§impl DownloadArgs
impl DownloadArgs
pub fn from_value( args: &HashMap<String, Value>, ) -> Result<Self, FileManagerError>
Trait Implementations§
Source§impl Clone for DownloadArgs
impl Clone for DownloadArgs
Source§fn clone(&self) -> DownloadArgs
fn clone(&self) -> DownloadArgs
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 moreAuto Trait Implementations§
impl Freeze for DownloadArgs
impl RefUnwindSafe for DownloadArgs
impl Send for DownloadArgs
impl Sync for DownloadArgs
impl Unpin for DownloadArgs
impl UnsafeUnpin for DownloadArgs
impl UnwindSafe for DownloadArgs
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