pub struct DownloadResult {
pub bytes: Vec<u8>,
pub content_type: Option<String>,
pub source_url: String,
}Expand description
Result of a successful download — the bytes plus discovered metadata.
Intentionally NOT Clone — bytes can be up to DEFAULT_MAX_BYTES.
Fields§
§bytes: Vec<u8>§content_type: Option<String>§source_url: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for DownloadResult
impl RefUnwindSafe for DownloadResult
impl Send for DownloadResult
impl Sync for DownloadResult
impl Unpin for DownloadResult
impl UnsafeUnpin 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