pub struct DownloadRequest {
pub url: String,
pub user_agent: Option<String>,
pub content_disposition: Option<String>,
pub mime_type: Option<String>,
pub content_length: Option<u64>,
pub suggested_filename: Option<String>,
pub source_page_url: Option<String>,
pub cookie: Option<String>,
}Fields§
§url: StringFinal download URL reported by the platform callback.
user_agent: Option<String>Request user-agent if available on this platform.
content_disposition: Option<String>Content-Disposition response header if exposed by the platform.
mime_type: Option<String>Response MIME type if exposed by the platform.
content_length: Option<u64>Response content length if known.
suggested_filename: Option<String>Platform-suggested filename (may be absent).
source_page_url: Option<String>Source page URL that initiated the download when available.
Cookie header string for url when available.
Trait Implementations§
Source§impl Clone for DownloadRequest
impl Clone for DownloadRequest
Source§fn clone(&self) -> DownloadRequest
fn clone(&self) -> DownloadRequest
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 DownloadRequest
impl Debug for DownloadRequest
impl Eq for DownloadRequest
Source§impl PartialEq for DownloadRequest
impl PartialEq for DownloadRequest
Source§fn eq(&self, other: &DownloadRequest) -> bool
fn eq(&self, other: &DownloadRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DownloadRequest
Auto Trait Implementations§
impl Freeze for DownloadRequest
impl RefUnwindSafe for DownloadRequest
impl Send for DownloadRequest
impl Sync for DownloadRequest
impl Unpin for DownloadRequest
impl UnsafeUnpin for DownloadRequest
impl UnwindSafe for DownloadRequest
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