pub struct DownloadResult {
pub url: String,
pub bytes: Bytes,
pub content_type: Option<String>,
pub size: u64,
pub hash: String,
pub media_type: MediaType,
pub base64: Option<String>,
}Expand description
Download result
Fields§
§url: StringOriginal URL
bytes: BytesDownloaded bytes
content_type: Option<String>Content type
size: u64File size
hash: StringSHA256 hash
media_type: MediaTypeMedia type
base64: Option<String>Base64 encoded (if configured)
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