pub struct AssetInfo<'a> {
pub immutable: bool,
pub size: SizeBytes,
pub development: bool,
pub hot_module_replacement: bool,
pub source_filename: Cow<'a, str>,
pub javascript_module: bool,
pub minimized: bool,
}Fields
immutable: boolA flag telling whether the asset can be long term cached (contains a hash)
size: SizeBytesThe size in bytes, only becomes available after asset has been emitted
development: boolA flag telling whether the asset is only used for development and doesn’t count towards user-facing assets
hot_module_replacement: boolsource_filename: Cow<'a, str>javascript_module: boolminimized: boolTrait Implementations
sourceimpl<'de: 'a, 'a> Deserialize<'de> for AssetInfo<'a> where
AssetInfo<'a>: Default,
impl<'de: 'a, 'a> Deserialize<'de> for AssetInfo<'a> where
AssetInfo<'a>: Default,
sourcefn 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<'a> RefUnwindSafe for AssetInfo<'a>
impl<'a> Send for AssetInfo<'a>
impl<'a> Sync for AssetInfo<'a>
impl<'a> Unpin for AssetInfo<'a>
impl<'a> UnwindSafe for AssetInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more