pub struct ListedRoute {
pub mount: &'static str,
pub method: &'static str,
pub path: &'static str,
pub handler: &'static str,
pub permission: Option<&'static str>,
}Expand description
A row of a package’s ROUTES table, named <crate>.<area>.<handler> once mounted;
mount is the route function adding it. sofie routes reads the tables without
compiling, so every row stays a call with literal arguments.
Fields§
§mount: &'static str§method: &'static str§path: &'static str§handler: &'static str§permission: Option<&'static str>Implementations§
Trait Implementations§
Source§impl Clone for ListedRoute
impl Clone for ListedRoute
impl Copy for ListedRoute
Auto Trait Implementations§
impl Freeze for ListedRoute
impl RefUnwindSafe for ListedRoute
impl Send for ListedRoute
impl Sync for ListedRoute
impl Unpin for ListedRoute
impl UnsafeUnpin for ListedRoute
impl UnwindSafe for ListedRoute
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