pub struct DownloadEvent {
pub timestamp_ms: u64,
pub kind: EventKind,
}Expand description
A structured progress event. The CLI consumes the same stream for both
human-readable progress bars and --json output.
Fields§
§timestamp_ms: u64Creation time in milliseconds since the UNIX epoch.
kind: EventKindWhat happened; flattened into the serialized object under the event
tag.
Implementations§
Trait Implementations§
Source§impl Clone for DownloadEvent
impl Clone for DownloadEvent
Source§impl Debug for DownloadEvent
impl Debug for DownloadEvent
Source§impl<'de> Deserialize<'de> for DownloadEvent
impl<'de> Deserialize<'de> for DownloadEvent
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
Auto Trait Implementations§
impl Forget for DownloadEvent
impl Freeze for DownloadEvent
impl Move for DownloadEvent
impl RefUnwindSafe for DownloadEvent
impl Send for DownloadEvent
impl Sync for DownloadEvent
impl Unpin for DownloadEvent
impl UnsafeUnpin for DownloadEvent
impl UnwindSafe for DownloadEvent
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