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: boolIndicates whether or not the asset was compared with the same file on the output file system
size: SizeBytesThe size of the file in bytes
info: AssetInfo<'a>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Asset<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Asset<'a>
Source§fn 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> Freeze for Asset<'a>
impl<'a> RefUnwindSafe for Asset<'a>
impl<'a> Send for Asset<'a>
impl<'a> Sync for Asset<'a>
impl<'a> Unpin for Asset<'a>
impl<'a> UnwindSafe for Asset<'a>
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