pub struct RouteAssets {
pub js: Vec<String>,
pub css: Vec<String>,
pub fonts: Vec<String>,
pub total_size_br: u64,
pub budget_warn_threshold: u64,
pub ir: Option<String>,
}Expand description
Per-route asset references.
Fields§
§js: Vec<String>JS modules for this route, in load order.
css: Vec<String>Stylesheets for this route.
fonts: Vec<String>Fonts to preload for this route.
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>The route’s compiled .fmir module, when it has one (Phase 2).
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