pub struct CompiledPages {
pub entry: String,
pub keys: Vec<String>,
}Expand description
The navigable page set of a compiled multi-page app.
The tree in CompiledApp::ir already holds every page, each behind the
gate that mounts it while it is the active one, exactly as a from-source
load assembles it. What a compiled app still needs is the routing data:
which page names exist, and which one is home. The run path reads that from
here rather than by looking for .lmn files, which a shipped app does not
carry.
Fields§
§entry: StringHome page key: the page that mounts before any navigation happens, and the fallback for a path matching no page.
keys: Vec<String>Every navigable page key, longest first, which is the order path resolution walks them in.
Trait Implementations§
Source§impl Clone for CompiledPages
impl Clone for CompiledPages
Source§fn clone(&self) -> CompiledPages
fn clone(&self) -> CompiledPages
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledPages
impl Debug for CompiledPages
Source§impl<'de> Deserialize<'de> for CompiledPages
impl<'de> Deserialize<'de> for CompiledPages
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 CompiledPages
impl RefUnwindSafe for CompiledPages
impl Send for CompiledPages
impl Sync for CompiledPages
impl Unpin for CompiledPages
impl UnsafeUnpin for CompiledPages
impl UnwindSafe for CompiledPages
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.