pub struct Path<T>(pub T);Expand description
Route path parameters decoded into T by field name.
Tuple Fields§
§0: TTrait Implementations§
impl<T: Eq> Eq for Path<T>
Source§impl<P, T> FromRequest<P> for Path<T>where
P: ?Sized,
T: DeserializeOwned + 'static,
impl<P, T> FromRequest<P> for Path<T>where
P: ?Sized,
T: DeserializeOwned + 'static,
Source§fn from_request<'a>(
_provider: &'a P,
_context: &'a mut InvocationContext,
request: &'a HandleRequest,
) -> ExtractorFuture<'a, Self>
fn from_request<'a>( _provider: &'a P, _context: &'a mut InvocationContext, request: &'a HandleRequest, ) -> ExtractorFuture<'a, Self>
Extracts this value or rejects dispatch before the handler runs.
impl<T: PartialEq> StructuralPartialEq for Path<T>
Auto Trait Implementations§
impl<T> Freeze for Path<T>where
T: Freeze,
impl<T> RefUnwindSafe for Path<T>where
T: RefUnwindSafe,
impl<T> Send for Path<T>where
T: Send,
impl<T> Sync for Path<T>where
T: Sync,
impl<T> Unpin for Path<T>where
T: Unpin,
impl<T> UnsafeUnpin for Path<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Path<T>where
T: UnwindSafe,
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