pub struct DownloadSummary {
pub id: String,
pub display_name: String,
pub status: DownloadStatus,
pub position: u32,
pub error: Option<String>,
pub group_id: Option<String>,
pub shard_info: Option<ShardInfo>,
}Expand description
A summary of a download in the queue (for snapshots and API responses).
Fields§
§id: StringCanonical ID string (model_id:quantization or just model_id).
display_name: StringHuman-readable display name.
status: DownloadStatusCurrent status of this download.
position: u32Position in queue (1 = currently downloading, 2+ = waiting).
error: Option<String>Error message if status is Failed.
group_id: Option<String>Group ID for sharded downloads (all shards share the same group_id).
shard_info: Option<ShardInfo>Shard information if this is part of a sharded model.
Trait Implementations§
Source§impl Clone for DownloadSummary
impl Clone for DownloadSummary
Source§fn clone(&self) -> DownloadSummary
fn clone(&self) -> DownloadSummary
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 moreSource§impl Debug for DownloadSummary
impl Debug for DownloadSummary
Source§impl<'de> Deserialize<'de> for DownloadSummary
impl<'de> Deserialize<'de> for DownloadSummary
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 DownloadSummary
impl PartialEq for DownloadSummary
Source§impl Serialize for DownloadSummary
impl Serialize for DownloadSummary
impl Eq for DownloadSummary
impl StructuralPartialEq for DownloadSummary
Auto Trait Implementations§
impl Freeze for DownloadSummary
impl RefUnwindSafe for DownloadSummary
impl Send for DownloadSummary
impl Sync for DownloadSummary
impl Unpin for DownloadSummary
impl UnwindSafe for DownloadSummary
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