pub struct DownloadFile {
pub path: &'static str,
pub url: &'static str,
}Expand description
One file of an AssetSource::Download asset.
Fields§
§path: &'static strWhere it is installed, relative to the asset directory. Forward slashes;
never absolute and never containing .., which provision_with
enforces rather than trusts.
url: &'static strThe URL it is fetched from.
Trait Implementations§
Source§impl Clone for DownloadFile
impl Clone for DownloadFile
Source§fn clone(&self) -> DownloadFile
fn clone(&self) -> DownloadFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DownloadFile
Source§impl Debug for DownloadFile
impl Debug for DownloadFile
impl Eq for DownloadFile
Source§impl PartialEq for DownloadFile
impl PartialEq for DownloadFile
impl StructuralPartialEq for DownloadFile
Auto Trait Implementations§
impl Freeze for DownloadFile
impl RefUnwindSafe for DownloadFile
impl Send for DownloadFile
impl Sync for DownloadFile
impl Unpin for DownloadFile
impl UnsafeUnpin for DownloadFile
impl UnwindSafe for DownloadFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.