pub struct RouteMetadata {
pub method: HttpMethod,
pub path: String,
pub handler_name: String,
pub middleware: Vec<String>,
pub params: Vec<ParamMetadata>,
}
Expand description
Route metadata extracted from controller
Fields§
§method: HttpMethod
HTTP method (GET, POST, etc.)
path: String
Route path relative to controller base path
handler_name: String
Name of the handler method
middleware: Vec<String>
Middleware specific to this route
params: Vec<ParamMetadata>
Route parameters with validation info
Trait Implementations§
Source§impl Clone for RouteMetadata
impl Clone for RouteMetadata
Source§fn clone(&self) -> RouteMetadata
fn clone(&self) -> RouteMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouteMetadata
impl Debug for RouteMetadata
Source§impl From<ControllerRoute> for RouteMetadata
Convert from existing ControllerRoute to our RouteMetadata
impl From<ControllerRoute> for RouteMetadata
Convert from existing ControllerRoute to our RouteMetadata
Source§fn from(route: ControllerRoute) -> Self
fn from(route: ControllerRoute) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RouteMetadata
impl RefUnwindSafe for RouteMetadata
impl Send for RouteMetadata
impl Sync for RouteMetadata
impl Unpin for RouteMetadata
impl UnwindSafe for RouteMetadata
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