pub struct PageConfig {
pub slot: String,
pub id: String,
pub label: BTreeMap<String, String>,
pub icon: Option<String>,
pub badge: Option<String>,
pub when: Option<String>,
pub start: bool,
pub tab: bool,
pub component: String,
}Expand description
A page a module contributes to a page slot.
Fields§
§slot: String§id: String§label: BTreeMap<String, String>§icon: Option<String>§badge: Option<String>Numeric state field of this module shown as the page’s live badge.
when: Option<String>Boolean state field of this module while which the page’s navigation item shows.
start: boolThe page’s variant comes first in the slot’s enum, so a selection starts on it.
tab: boolA Tabs lists the page; false leaves it to sidebars, for a page a
phone reaches some other way.
component: StringThe module component showing the page.
Trait Implementations§
Source§impl Clone for PageConfig
impl Clone for PageConfig
Auto Trait Implementations§
impl Freeze for PageConfig
impl RefUnwindSafe for PageConfig
impl Send for PageConfig
impl Sync for PageConfig
impl Unpin for PageConfig
impl UnsafeUnpin for PageConfig
impl UnwindSafe for PageConfig
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