Struct pavex::request::path::EncodedParamValue
source · pub struct EncodedParamValue<'request>(/* private fields */);
Expand description
A wrapper around a percent-encoded path parameter, obtained via RawPathParams
.
Use decode
to extract the percent-encoded value.
Implementations§
source§impl<'request> EncodedParamValue<'request>
impl<'request> EncodedParamValue<'request>
sourcepub fn decode(&self) -> Result<Cow<'request, str>, DecodeError>
pub fn decode(&self) -> Result<Cow<'request, str>, DecodeError>
Percent-decode a raw path parameter.
If decoding fails, a DecodeError
is returned.
Trait Implementations§
source§impl<'request> Clone for EncodedParamValue<'request>
impl<'request> Clone for EncodedParamValue<'request>
source§fn clone(&self) -> EncodedParamValue<'request>
fn clone(&self) -> EncodedParamValue<'request>
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 moresource§impl<'request> Debug for EncodedParamValue<'request>
impl<'request> Debug for EncodedParamValue<'request>
source§impl<'request> Hash for EncodedParamValue<'request>
impl<'request> Hash for EncodedParamValue<'request>
source§impl<'request> Ord for EncodedParamValue<'request>
impl<'request> Ord for EncodedParamValue<'request>
source§fn cmp(&self, other: &EncodedParamValue<'request>) -> Ordering
fn cmp(&self, other: &EncodedParamValue<'request>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'request> PartialEq for EncodedParamValue<'request>
impl<'request> PartialEq for EncodedParamValue<'request>
source§impl<'request> PartialOrd for EncodedParamValue<'request>
impl<'request> PartialOrd for EncodedParamValue<'request>
impl<'request> Eq for EncodedParamValue<'request>
impl<'request> StructuralPartialEq for EncodedParamValue<'request>
Auto Trait Implementations§
impl<'request> Freeze for EncodedParamValue<'request>
impl<'request> RefUnwindSafe for EncodedParamValue<'request>
impl<'request> Send for EncodedParamValue<'request>
impl<'request> Sync for EncodedParamValue<'request>
impl<'request> Unpin for EncodedParamValue<'request>
impl<'request> UnwindSafe for EncodedParamValue<'request>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.