pub struct RouteRegistration {
pub controller: String,
pub handler: String,
pub middleware: Vec<String>,
pub parameters: Vec<ParamDef>,
pub definition: RouteDefinition,
}
Expand description
Registration information for a route
Fields§
§controller: String
§handler: String
§middleware: Vec<String>
§parameters: Vec<ParamDef>
§definition: RouteDefinition
Trait Implementations§
Source§impl Clone for RouteRegistration
impl Clone for RouteRegistration
Source§fn clone(&self) -> RouteRegistration
fn clone(&self) -> RouteRegistration
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 moreAuto Trait Implementations§
impl Freeze for RouteRegistration
impl RefUnwindSafe for RouteRegistration
impl Send for RouteRegistration
impl Sync for RouteRegistration
impl Unpin for RouteRegistration
impl UnwindSafe for RouteRegistration
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