pub struct Route {
pub path: String,
pub handler: String,
pub params: HashMap<String, String>,
pub query: HashMap<String, String>,
pub children: Vec<Route>,
}Expand description
Route definition
Fields§
§path: StringRoute path pattern (e.g., “/users/:id”)
handler: StringComponent name or handler
params: HashMap<String, String>Route parameters extracted from URL
query: HashMap<String, String>Query parameters
children: Vec<Route>Child routes (for nested routing)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin 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