pub struct Stats<'a> {
pub version: Cow<'a, str>,
pub hash: Cow<'a, str>,
pub time: DurationMillis,
pub public_path: Cow<'a, str>,
pub output_path: Cow<'a, str>,
pub assets_by_chunk_name: HashMap<ChunkName<'a>, Vec<AssetPath<'a>>>,
pub entrypoints: HashMap<Cow<'a, str>, EntryPoint<'a>>,
pub assets: Vec<Asset<'a>>,
pub chunks: Chunks<'a>,
pub modules: Modules<'a>,
/* private fields */
}Expand description
§Webpack stats file
Deserialized representation of the webpack v5 stats file. Will try to borrow as much as it can from the underlying buffer.
Fields§
§version: Cow<'a, str>Version of webpack used for the compilation (5.x.x)
hash: Cow<'a, str>Compilation specific hash
time: DurationMillisCompilation time in milliseconds
public_path: Cow<'a, str>Undocumented by webpack
output_path: Cow<'a, str>path to webpack output directory
assets_by_chunk_name: HashMap<ChunkName<'a>, Vec<AssetPath<'a>>>Chunk name to emitted asset(s) mapping
entrypoints: HashMap<Cow<'a, str>, EntryPoint<'a>>§assets: Vec<Asset<'a>>§chunks: Chunks<'a>§modules: Modules<'a>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Stats<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Stats<'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 Stats<'a>
impl<'a> RefUnwindSafe for Stats<'a>
impl<'a> !Send for Stats<'a>
impl<'a> !Sync for Stats<'a>
impl<'a> Unpin for Stats<'a>
impl<'a> UnwindSafe for Stats<'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