pub struct Asset<'a> {
    pub type: Cow<'a, str>,
    pub name: Cow<'a, str>,
    pub chunk_names: Vec<ChunkName<'a>>,
    pub chunk_id_hints: &'a [()],
    pub chunks: ZeroVec<'a, ChunkId>,
    pub compared_for_emit: bool,
    pub size: SizeBytes,
    pub info: AssetInfo<'a>,
}

Fields

type: Cow<'a, str>

Undocumented by webpack.

name: Cow<'a, str>

The output filename

chunk_names: Vec<ChunkName<'a>>

The chunks this asset contains

chunk_id_hints: &'a [()]

Undocumented by webpack

chunks: ZeroVec<'a, ChunkId>

The chunk IDs this asset contains

compared_for_emit: bool

Indicates whether or not the asset was compared with the same file on the output file system

size: SizeBytes

The size of the file in bytes

info: AssetInfo<'a>

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.