pub enum MenuItemConfig {
Page {
path: PathBuf,
url: String,
visibility: Visibility,
},
Menu {
title: String,
pages: Vec<MenuItemConfig>,
},
}Expand description
Configurations for menu items.
Variants§
Page
A singple page in the menu.
Fields
§
url: StringA URL for this page. This will still be relative to the page base and not absolute across the application.
§
visibility: VisibilityIf and where the page will be visible.
Menu
A grouping of menu items.
Fields
§
pages: Vec<MenuItemConfig>A list of pages under the menu group.
Trait Implementations§
Source§impl Debug for MenuItemConfig
impl Debug for MenuItemConfig
Source§impl<'de> Deserialize<'de> for MenuItemConfig
impl<'de> Deserialize<'de> for MenuItemConfig
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 MenuItemConfig
impl RefUnwindSafe for MenuItemConfig
impl Send for MenuItemConfig
impl Sync for MenuItemConfig
impl Unpin for MenuItemConfig
impl UnwindSafe for MenuItemConfig
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