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>👎Deprecated since 0.2.2:
the WASM walker is deprecated: @getforma/core/wasm, forma-ir’s wasm feature and the build’s wasm key go in 3.0.0, and with them this field and the window.__FORMA_WASM__ script it adds to the page. Islands re-render with @getforma/core’s h(). Removed in 3.0.0
The WASM walker, when the build ships one. When it is set, a page whose
route has an .ir module gets a nonced window.__FORMA_WASM__ script
naming the loader, the binary and the module; that injection goes in
3.0.0 with this field.
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