pub struct AssetSpec {
pub id: &'static str,
pub analyzer: &'static str,
pub kind: AssetKind,
pub source: AssetSource,
pub file: &'static str,
pub licence: &'static str,
}Expand description
One pinned asset.
Fields§
§id: &'static strStable id, used as the cache directory name and in every error.
analyzer: &'static strThe analyzer that needs it.
kind: AssetKindWhat it is.
source: AssetSourceWhere it comes from.
file: &'static strThe file name it is installed under, for a AssetSource::Vendored
asset. Empty for a directory asset.
licence: &'static strLicence of the asset’s contents, disclosed by prefetch before it
installs anything — the same disclosure roteiro model pull makes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssetSpec
impl RefUnwindSafe for AssetSpec
impl Send for AssetSpec
impl Sync for AssetSpec
impl Unpin for AssetSpec
impl UnsafeUnpin for AssetSpec
impl UnwindSafe for AssetSpec
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