pub struct NovaRoute {
pub path: &'static str,
pub method: &'static str,
pub handler: fn() -> MethodRouter<()>,
}Expand description
A route contributed via the inventory macro by attribute macros.
Each route is a static descriptor with a path, method and a handler constructor function used at startup to register the route into the application router.
Fields§
§path: &'static str§method: &'static str§handler: fn() -> MethodRouter<()>Trait Implementations§
Auto Trait Implementations§
impl Freeze for NovaRoute
impl RefUnwindSafe for NovaRoute
impl Send for NovaRoute
impl Sync for NovaRoute
impl Unpin for NovaRoute
impl UnsafeUnpin for NovaRoute
impl UnwindSafe for NovaRoute
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more