pub struct RouteAssets {
pub mode: RouteMode,
pub js: Vec<String>,
pub css: Vec<String>,
pub fonts: Vec<String>,
pub modulepreload: Vec<String>,
pub total_size_br: u64,
pub budget_warn_threshold: u64,
pub ir: Option<String>,
}Expand description
Per-route asset references.
Fields§
§mode: RouteModeExplicit browser or server rendering, independent of file availability.
js: Vec<String>JS modules for this route, in load order. An empty list on an SSR route declares static output: no island definitions or module preloads.
css: Vec<String>Stylesheets for this route.
fonts: Vec<String>Fonts to preload for this route.
modulepreload: Vec<String>Static module dependencies, excluding duplicates and route entrypoints at render.
total_size_br: u64Total brotli-compressed size of the route’s assets, in bytes.
budget_warn_threshold: u64Size above which the build warns about this route’s payload.
ir: Option<String>Required for SSR, absent for an intentional browser route.
Trait Implementations§
Source§impl Clone for RouteAssets
impl Clone for RouteAssets
Source§impl Debug for RouteAssets
impl Debug for RouteAssets
Source§impl<'de> Deserialize<'de> for RouteAssets
impl<'de> Deserialize<'de> for RouteAssets
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 RouteAssets
impl RefUnwindSafe for RouteAssets
impl Send for RouteAssets
impl Sync for RouteAssets
impl Unpin for RouteAssets
impl UnsafeUnpin for RouteAssets
impl UnwindSafe for RouteAssets
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