pub struct RouteDefinition {
pub method: HttpMethod,
pub path: String,
pub handler_name: &'static str,
pub handler: Arc<dyn RouteHandler>,
}Expand description
A registered route with metadata.
Fields§
§method: HttpMethod§path: String§handler_name: &'static str§handler: Arc<dyn RouteHandler>Trait Implementations§
Source§impl Clone for RouteDefinition
impl Clone for RouteDefinition
Source§fn clone(&self) -> RouteDefinition
fn clone(&self) -> RouteDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteDefinition
impl !RefUnwindSafe for RouteDefinition
impl Send for RouteDefinition
impl Sync for RouteDefinition
impl Unpin for RouteDefinition
impl UnsafeUnpin for RouteDefinition
impl !UnwindSafe for RouteDefinition
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