Struct httprouter::Params [−][src]
Expand description
A Vec
of Param
returned by a route match.
There are two ways to retrieve the value of a parameter:
- by the name of the parameter
let user = params.get("user"); // defined by :user or *user
- by the index of the parameter. This way you can also get the name (key)
let third_key = ¶ms[2].key; // the name of the 3rd parameter let third_value = ¶ms[2].value; // the value of the 3rd parameter
Implementations
Trait Implementations
impl IntoIterator for Params
[src]
impl IntoIterator for Params
[src]impl StructuralPartialEq for Params
[src]
Auto Trait Implementations
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]