pub struct AssetManifest {
pub version: u32,
pub build_hash: String,
pub assets: HashMap<String, String>,
pub routes: HashMap<String, RouteAssets>,
pub wasm: Option<WasmAssets>,
}Expand description
Asset manifest loaded from manifest.json in the embedded dist directory.
Fields§
§version: u32Manifest schema version.
build_hash: StringIdentifier for the build that produced these assets.
assets: HashMap<String, String>Logical asset name → content-hashed filename.
routes: HashMap<String, RouteAssets>Route pattern → the assets that route needs.
wasm: Option<WasmAssets>The WASM walker, when the build ships one.
Implementations§
Trait Implementations§
Source§impl Clone for AssetManifest
impl Clone for AssetManifest
Source§impl Debug for AssetManifest
impl Debug for AssetManifest
Source§impl<'de> Deserialize<'de> for AssetManifest
impl<'de> Deserialize<'de> for AssetManifest
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 Freeze for AssetManifest
impl RefUnwindSafe for AssetManifest
impl Send for AssetManifest
impl Sync for AssetManifest
impl Unpin for AssetManifest
impl UnsafeUnpin for AssetManifest
impl UnwindSafe for AssetManifest
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