pub struct PageDef {
pub path: String,
pub component: String,
pub layout: Option<String>,
pub loading: Option<String>,
pub error: Option<String>,
pub meta: Option<HashMap<String, String>>,
}
Expand description
Page/route definition
Fields§
§path: String
§component: String
§layout: Option<String>
§loading: Option<String>
§error: Option<String>
§meta: Option<HashMap<String, String>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageDef
impl<'de> Deserialize<'de> for PageDef
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 PageDef
impl RefUnwindSafe for PageDef
impl Send for PageDef
impl Sync for PageDef
impl Unpin for PageDef
impl UnwindSafe for PageDef
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