pub struct PageDef {
pub route: String,
pub template: String,
pub locale_templates: Option<HashMap<String, String>>,
pub loaders: Vec<LoaderDef>,
pub data_id: String,
pub layout_chain: Vec<LayoutChainEntry>,
pub page_loader_keys: Vec<String>,
pub i18n_keys: Vec<String>,
}Fields§
§route: StringAxum route syntax, e.g. “/user/{id}”
template: String§locale_templates: Option<HashMap<String, String>>Per-locale pre-resolved templates (layout chain already applied). Keyed by locale.
loaders: Vec<LoaderDef>§data_id: StringScript ID for the injected data JSON. Defaults to “SEAM_DATA”.
layout_chain: Vec<LayoutChainEntry>Layout chain from outer to inner. Each entry records which loader keys belong to that layout.
page_loader_keys: Vec<String>Data keys from page-level loaders (not layout). Used to split data in the data script.
i18n_keys: Vec<String>Merged i18n keys from route + layout chain. Empty means include all keys.
Auto Trait Implementations§
impl Freeze for PageDef
impl !RefUnwindSafe for PageDef
impl Send for PageDef
impl Sync for PageDef
impl Unpin for PageDef
impl UnsafeUnpin for PageDef
impl !UnwindSafe for PageDef
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