pub struct RouteInfo {
pub relative_path: PathBuf,
pub file_path: PathBuf,
pub pattern: String,
pub variant_name: String,
pub params: Vec<String>,
pub layout_chain: Vec<PathBuf>,
pub is_fallback: bool,
}Expand description
Information about a single route discovered by scanning the routes directory.
Fields§
§relative_path: PathBufRelative path from the routes root directory (e.g., “users/[id].fui”).
file_path: PathBufAbsolute file path to the .fui file.
pattern: StringCanonical URL pattern (e.g., “/”, “/settings”, “/users/:id”).
variant_name: StringGenerated PascalCase enum variant name (e.g., “Index”, “Settings”, “UsersId”).
params: Vec<String>Dynamic parameter names extracted from path segments (e.g., [“id”]).
layout_chain: Vec<PathBuf>Relative paths to layout files wrapping this route, from outer to inner.
is_fallback: boolTrue if this is the application fallback screen (fallback.fui).
Implementations§
Trait Implementations§
impl Eq for RouteInfo
impl StructuralPartialEq for RouteInfo
Auto Trait Implementations§
impl Freeze for RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnsafeUnpin for RouteInfo
impl UnwindSafe for RouteInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.