pub(crate) enum Route {
}Expand description
Defines the application’s various routes and their corresponding paths.
This enum is used by yew-router to map URLs to specific components,
enabling navigation within the single-page application. Each route is protected
by ProtectedRoute middleware where appropriate to enforce authentication and authorization.
See switch for the routing logic.
Variants§
Home
The application’s home page.
Ticket
Route for submitting a new ticket.
TicketById
Route for viewing a specific ticket by its ID.
AllTickets
Route for viewing all tickets.
ArchivedTickets
Route for viewing archived tickets.
Register
Route for user registration.
Login
Route for user login.
Setup
Route for the initial administrator setup.
AllUsers
Route for viewing all users.
UserByID
Route for viewing a specific user by their ID.
Diagnostics
Route for displaying diagnostics information (admin-only).
PermissionDenied
Route displayed when a user attempts to access a page without sufficient permissions.
NotFound
Catch-all route for unmatched paths, leading to a 404 Not Found page.
Trait Implementations§
Source§impl Routable for Route
impl Routable for Route
impl StructuralPartialEq for Route
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.