pub struct DownloadRequest {
pub id: u64,
pub url: String,
pub suggested_name: String,
pub mime: String,
pub size: Option<u64>,
}Expand description
A file the engine will not show and offers to save instead (crate::WebView::on_download):
a response with a type no page can display, one the server marked as an attachment, or a link
with the download attribute.
Fields§
§id: u64Identifies the download in cancel_download.
url: String§suggested_name: StringThe file name the server or the link suggests. It is a name only, never a path, and safe to join onto a directory.
mime: StringThe MIME type the server gave, which may be empty.
size: Option<u64>The length the server announced.
Trait Implementations§
Source§impl Clone for DownloadRequest
impl Clone for DownloadRequest
Source§impl Debug for DownloadRequest
impl Debug for DownloadRequest
impl Eq for DownloadRequest
Source§impl PartialEq for DownloadRequest
impl PartialEq for DownloadRequest
impl StructuralPartialEq for DownloadRequest
Auto Trait Implementations§
impl Forget for DownloadRequest
impl Freeze for DownloadRequest
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more