pub struct DownloadResult {
pub bytes: Vec<u8>,
pub content_type: Option<String>,
}Expand description
Metadata about a successfully downloaded file.
Fields§
§bytes: Vec<u8>The raw file bytes.
content_type: Option<String>Content-Type header from the response, if present.
Trait Implementations§
Source§impl Clone for DownloadResult
impl Clone for DownloadResult
Source§fn clone(&self) -> DownloadResult
fn clone(&self) -> DownloadResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DownloadResult
impl RefUnwindSafe for DownloadResult
impl Send for DownloadResult
impl Sync for DownloadResult
impl Unpin for DownloadResult
impl UnwindSafe for DownloadResult
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