pub struct ManifestChunk<S = String, Vs = Vec<S>, Vu8 = Vec<u8>> {}Expand description
Vite manifest chunk.
Where possible, use StaticManifestChunk and DynamicManifestChunk instead.
§Generics
- Generic
Scan be used to change type of strings in struct. - Generic
Vscan be used to change type of array of strings. - Generic
Vu8can be used to change type of byte arrays (f.e.Vec<u8>or&[u8]).
Fields§
§key: SThe key of this chunk in manifest.
This field is added by vite-static and skipped during (de)serialization.
contents: Vu8The contents of manifest chunk.
This field is added by vite-static and skipped during (de)serialization.
hash: SHash of this chunk. Derive macro uses BLAKE3 as hashing algorithm.
This field is added by vite-static and skipped during (de)serialization.
mime_type: SMime type of this chunk.
This field is added by vite-static and skipped during (de)serialization.
src: Option<S>The input file name of this chunk/asset if known.
file: SThe output file name of this chunk/asset.
css: VsThe list of CSS files imported by this chunk.
assets: VsThe list of asset files imported by this chunk, excluding CSS files.
is_entry: boolWhether this chunk or asset is an entry point
name: Option<S>The name of this chunk/asset if known.
is_dynamic_entry: boolWhether this chunk is a dynamic entry point
This field is only present in JS chunks.
imports: VsThe list of statically imported chunks by this chunk
The values are the keys of the manifest. This field is only present in JS chunks.
dynamic_imports: VsThe list of dynamically imported chunks by this chunk
The values are the keys of the manifest. This field is only present in JS chunks.
Trait Implementations§
Source§impl<S, Vs, Vu8> Clone for ManifestChunk<S, Vs, Vu8>
impl<S, Vs, Vu8> Clone for ManifestChunk<S, Vs, Vu8>
Source§fn clone(&self) -> ManifestChunk<S, Vs, Vu8>
fn clone(&self) -> ManifestChunk<S, Vs, Vu8>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<S, Vs, Vu8> Copy for ManifestChunk<S, Vs, Vu8>
Source§impl<S, Vs, Vu8> Debug for ManifestChunk<S, Vs, Vu8>
impl<S, Vs, Vu8> Debug for ManifestChunk<S, Vs, Vu8>
Source§impl<S, Vs, Vu8> Default for ManifestChunk<S, Vs, Vu8>
impl<S, Vs, Vu8> Default for ManifestChunk<S, Vs, Vu8>
Source§fn default() -> ManifestChunk<S, Vs, Vu8>
fn default() -> ManifestChunk<S, Vs, Vu8>
Source§impl<'de, S, Vs, Vu8> Deserialize<'de> for ManifestChunk<S, Vs, Vu8>
impl<'de, S, Vs, Vu8> Deserialize<'de> for ManifestChunk<S, Vs, Vu8>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManifestChunk<S, Vs, Vu8>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManifestChunk<S, Vs, Vu8>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl<S, Vs, Vu8> Eq for ManifestChunk<S, Vs, Vu8>
Source§impl<S, Vs, Vu8> Hash for ManifestChunk<S, Vs, Vu8>
impl<S, Vs, Vu8> Hash for ManifestChunk<S, Vs, Vu8>
Source§impl<S, Vs, Vu8> PartialEq for ManifestChunk<S, Vs, Vu8>
impl<S, Vs, Vu8> PartialEq for ManifestChunk<S, Vs, Vu8>
Source§fn eq(&self, other: &ManifestChunk<S, Vs, Vu8>) -> bool
fn eq(&self, other: &ManifestChunk<S, Vs, Vu8>) -> bool
self and other values to be equal, and is used by ==.