pub struct RouteMatch<'router, 'path> { /* private fields */ }Expand description
A compiled route match with its direct operation slot and path captures.
Implementations§
Source§impl RouteMatch<'_, '_>
impl RouteMatch<'_, '_>
pub const fn operation_index(&self) -> usize
pub const fn requires_json(&self) -> bool
pub const fn body_source(&self) -> Option<InputSource>
pub fn path_parameter(&self, name: &str) -> Option<Cow<'_, str>>
Auto Trait Implementations§
impl<'router, 'path> Freeze for RouteMatch<'router, 'path>
impl<'router, 'path> RefUnwindSafe for RouteMatch<'router, 'path>
impl<'router, 'path> Send for RouteMatch<'router, 'path>
impl<'router, 'path> Sync for RouteMatch<'router, 'path>
impl<'router, 'path> Unpin for RouteMatch<'router, 'path>
impl<'router, 'path> UnsafeUnpin for RouteMatch<'router, 'path>
impl<'router, 'path> UnwindSafe for RouteMatch<'router, 'path>
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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