pub struct DownloadProgress {
pub slug: String,
pub downloaded_bytes: u64,
pub total_bytes: u64,
pub state: DownloadState,
pub error: Option<ErrorObject>,
}Expand description
One entry in a snapshot’s downloads array.
Fields§
§slug: String§downloaded_bytes: u64§total_bytes: u64The byte length the feed declares for the enclosure.
state: DownloadState§error: Option<ErrorObject>Populated only when state is failed.
Trait Implementations§
Source§impl Clone for DownloadProgress
impl Clone for DownloadProgress
Source§impl Debug for DownloadProgress
impl Debug for DownloadProgress
Source§impl<'de> Deserialize<'de> for DownloadProgress
impl<'de> Deserialize<'de> for DownloadProgress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DownloadProgress
impl PartialEq for DownloadProgress
Source§impl Serialize for DownloadProgress
impl Serialize for DownloadProgress
impl StructuralPartialEq for DownloadProgress
Auto Trait Implementations§
impl Freeze for DownloadProgress
impl RefUnwindSafe for DownloadProgress
impl Send for DownloadProgress
impl Sync for DownloadProgress
impl Unpin for DownloadProgress
impl UnsafeUnpin for DownloadProgress
impl UnwindSafe for DownloadProgress
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