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: bool

A flag telling whether the asset can be long term cached (contains a hash)

size: SizeBytes

The size in bytes, only becomes available after asset has been emitted

development: bool

A 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: bool

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.