pub struct PageEntry {
pub route: String,
pub layout: Option<String>,
pub title: Option<String>,
pub sidebar: bool,
pub children: Vec<Block>,
}Expand description
A single page extracted from a ::page block.
Fields§
§route: String§layout: Option<String>§title: Option<String>§children: Vec<Block>Implementations§
Source§impl PageEntry
impl PageEntry
Sourcepub fn display_title(&self) -> String
pub fn display_title(&self) -> String
Returns the human-readable display title for this page.
If the page has an explicit title, returns that. Otherwise, converts
the route to a readable label using humanize_route.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageEntry
impl RefUnwindSafe for PageEntry
impl Send for PageEntry
impl Sync for PageEntry
impl Unpin for PageEntry
impl UnsafeUnpin for PageEntry
impl UnwindSafe for PageEntry
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