pub struct RouteMatched {
pub routes: Routes,
pub route: Arc<Route>,
pub parameters: Vec<(String, String)>,
}
Fields§
§routes: Routes
§route: Arc<Route>
§parameters: Vec<(String, String)>
Implementations§
Source§impl RouteMatched
impl RouteMatched
pub fn parameter_nth(&self, _index: usize) -> &String
pub fn parameters_1(&self) -> &String
pub fn parameters_2(&self) -> (&String, &String)
pub fn parameters_3(&self) -> (&String, &String, &String)
pub fn parameters_4(&self) -> (&String, &String, &String, &String)
pub fn resolve_parameter_nth(_request: &Request<Body>, _index: usize) -> &String
pub fn resolve_parameters_1(_request: &Request<Body>) -> &String
pub fn resolve_parameters_2(_request: &Request<Body>) -> (&String, &String)
pub fn resolve_parameters_3( _request: &Request<Body>, ) -> (&String, &String, &String)
pub fn resolve_parameters_4( _request: &Request<Body>, ) -> (&String, &String, &String, &String)
pub fn resolve(_request: &Request<Body>) -> Option<&Self>
Trait Implementations§
Source§impl Clone for RouteMatched
impl Clone for RouteMatched
Source§fn clone(&self) -> RouteMatched
fn clone(&self) -> RouteMatched
Returns a copy 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 RouteMatched
impl !RefUnwindSafe for RouteMatched
impl Send for RouteMatched
impl Sync for RouteMatched
impl Unpin for RouteMatched
impl !UnwindSafe for RouteMatched
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