pub struct Download {
pub quant: String,
pub filename: String,
pub size_bytes: u64,
pub sha256: Option<String>,
pub url: Option<String>,
}Expand description
One downloadable quantisation of the variant.
Fields§
§quant: String§filename: String§size_bytes: u64§sha256: Option<String>The file’s own digest, where its host publishes one: the Hub’s blobs carry a sha256 per file, and the speech feed’s documents carry none - which is the difference the install records as a fact.
url: Option<String>The file itself, when the feed names it directly rather than through
a document’s link table. The Hub’s blobs carry no URL, so this is the
resolve path its own convention spells; a speech feed’s row leaves
this None and the install reads the doc’s table by file name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Download
impl<'de> Deserialize<'de> for Download
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
impl StructuralPartialEq for Download
Auto Trait Implementations§
impl Freeze for Download
impl RefUnwindSafe for Download
impl Send for Download
impl Sync for Download
impl Unpin for Download
impl UnsafeUnpin for Download
impl UnwindSafe for Download
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