pub struct PathParam<T: ?Sized>(/* private fields */);
Trait Implementations§
Source§impl<'a, R> Extractor<'a, R> for &'a PathParam<str>
impl<'a, R> Extractor<'a, R> for &'a PathParam<str>
type Error = Infallible
type Prepared = ()
fn validate(validate: Validate<'_>)
fn prepare( _prepare: Prepare<'_>, ) -> Pin<Box<dyn Future<Output = Result<Self::Prepared, Self::Error>> + Send + '_>>
fn extract(
extract: Extract<'a, '_, Self::Prepared, R>,
) -> Result<Self, Self::Error>where
Self: Sized,
Source§impl<'a, T, R> Extractor<'a, R> for PathParam<T>
impl<'a, T, R> Extractor<'a, R> for PathParam<T>
type Error = PathError<<T as FromStr>::Err>
type Prepared = ()
fn validate(validate: Validate<'_>)
fn prepare( _prepare: Prepare<'_>, ) -> Pin<Box<dyn Future<Output = Result<Self::Prepared, Self::Error>> + Send + '_>>
fn extract(
extract: Extract<'a, '_, Self::Prepared, R>,
) -> Result<Self, Self::Error>where
Self: Sized,
impl<T: Eq + ?Sized> Eq for PathParam<T>
impl<T: ?Sized> StructuralPartialEq for PathParam<T>
Auto Trait Implementations§
impl<T> Freeze for PathParam<T>
impl<T> RefUnwindSafe for PathParam<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for PathParam<T>
impl<T> Sync for PathParam<T>
impl<T> Unpin for PathParam<T>
impl<T> UnwindSafe for PathParam<T>where
T: UnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.