Struct actix_web::dev::Params [] [src]

pub struct Params<'a>(_);

Route match information

If resource path contains variable patterns, Params stores this variables.

Methods

impl<'a> Params<'a>
[src]

[src]

Check if there are any matched patterns

[src]

Check number of extracted parameters

[src]

Get matched parameter by name without type conversion

[src]

Get matched FromParam compatible parameter by name.

If keyed parameter is not available empty string is used as default value.

fn index(req: HttpRequest) -> Result<String> {
   let ivalue: isize = req.match_info().query("val")?;
   Ok(format!("isuze value: {:?}", ivalue))
}

Important traits for Iter<'a, T>
[src]

Return iterator to items in parameter container

Trait Implementations

impl<'a> Debug for Params<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, 'b, 'c: 'a> Index<&'b str> for &'c Params<'a>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<'a, 'c: 'a> Index<usize> for &'c Params<'a>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl<'a> Send for Params<'a>

impl<'a> Sync for Params<'a>