pub struct Downloadable {
pub urls: Box<[Box<str>]>,
pub hash: Box<str>,
pub size: u64,
}
Expand description
A file that can be downloaded
Fields§
§urls: Box<[Box<str>]>
A list of URLs that can be used, in order of precedence
hash: Box<str>
A hash of the file. This should be in the form sha256:1234abcd...
size: u64
The size of the file, in bytes
Trait Implementations§
Source§impl Clone for Downloadable
impl Clone for Downloadable
Source§fn clone(&self) -> Downloadable
fn clone(&self) -> Downloadable
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 Downloadable
impl Debug for Downloadable
Source§impl<'de> Deserialize<'de> for Downloadable
impl<'de> Deserialize<'de> for Downloadable
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 Freeze for Downloadable
impl RefUnwindSafe for Downloadable
impl Send for Downloadable
impl Sync for Downloadable
impl Unpin for Downloadable
impl UnwindSafe for Downloadable
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