pub struct DownloadReceipt {
pub byte_length: u64,
pub requested_quality: MediaQuality,
pub substituted_filetype: Option<u32>,
pub picture_format: Option<u32>,
pub md5: String,
pub sha256: String,
pub advertised_size_matches: Option<bool>,
}Expand description
What a download into a writer verified: everything DownloadedMedia
reports except the bytes, which went to the writer.
Fields§
§byte_length: u64Plaintext bytes written.
requested_quality: MediaQualityQuality the download asked for.
substituted_filetype: Option<u32>File type the CDN substituted for the requested one, when it said so.
picture_format: Option<u32>Picture format the CDN reported, when it said so.
md5: StringLowercase hex MD5 of the plaintext.
sha256: StringLowercase hex SHA-256 of the plaintext.
advertised_size_matches: Option<bool>Whether the plaintext length matched the advertised size, when one was advertised.
Trait Implementations§
Source§impl Clone for DownloadReceipt
impl Clone for DownloadReceipt
Auto Trait Implementations§
impl Forget for DownloadReceipt
impl Freeze for DownloadReceipt
impl Move for DownloadReceipt
impl RefUnwindSafe for DownloadReceipt
impl Send for DownloadReceipt
impl Sync for DownloadReceipt
impl Unpin for DownloadReceipt
impl UnsafeUnpin for DownloadReceipt
impl UnwindSafe for DownloadReceipt
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