pub struct Path<T>(pub T);Expand description
Typed route parameters: Path(p): Path<BlogParams>. A parameter that
fails to parse (e.g. /users/abc for id: u64) renders the 404 page.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> FromContext for Path<T>where
T: DeserializeOwned,
impl<T> FromContext for Path<T>where
T: DeserializeOwned,
fn from_context(ctx: &Arc<RequestContext>) -> Result<Path<T>, Error>
Auto Trait Implementations§
impl<T> Forget for Path<T>
impl<T> Freeze for Path<T>where
T: Freeze,
impl<T> Move for Path<T>
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