pub struct Download {
pub bytes: Vec<u8>,
pub filename: String,
pub mime: String,
pub url: String,
}Expand description
One download the engine holds in memory, on its way to disk.
Fields§
§bytes: Vec<u8>§filename: StringSuggested file name, from Content-Disposition, the anchor’s
download attribute, or the URL’s last path segment.
mime: StringMIME type as reported by the blob or the response. May be empty.
url: StringThe URL the bytes came from. blob: for in-page saves.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Download
impl Freeze for Download
impl Move for Download
impl RefUnwindSafe for Download
impl Send for Download
impl Sync for Download
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Download
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