pub struct SiteNavNode {
pub title: String,
pub href: String,
pub is_current: bool,
pub is_ancestor_of_current: bool,
pub children: Vec<SiteNavNode>,
}Expand description
A node in the full site navigation tree.
Fields§
§title: StringNode title
href: StringNode href
is_current: boolWhether this is the current page
is_ancestor_of_current: boolWhether this node is an ancestor of the current page
children: Vec<SiteNavNode>Child nodes
Trait Implementations§
Source§fn clone(&self) -> SiteNavNode
fn clone(&self) -> SiteNavNode
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 moreAuto Trait Implementations§
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