Struct webpack_stats::v5::Stats
source · [−]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 assets: Vec<Asset<'a>>,
pub chunks: Vec<Chunk<'a>>,
pub modules: Vec<Module<'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
assets: Vec<Asset<'a>>chunks: Vec<Chunk<'a>>modules: Vec<Module<'a>>Trait Implementations
sourceimpl<'de: 'a, 'a> Deserialize<'de> for Stats<'a> where
Stats<'a>: Default,
impl<'de: 'a, 'a> Deserialize<'de> for Stats<'a> where
Stats<'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 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
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