pub struct Route {
pub path: String,
pub component: String,
pub name: Option<String>,
pub redirect: Option<String>,
pub children: Option<Vec<Route>>,
pub meta: Option<NargoValue>,
pub span: Span,
}Expand description
单个路由配置
Fields§
§path: String路由路径
component: String关联组件
name: Option<String>路由名称
redirect: Option<String>重定向路径
children: Option<Vec<Route>>子路由
meta: Option<NargoValue>路由元数据
span: Span路由的位置范围
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Route
impl<'de> Deserialize<'de> for Route
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 Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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