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

pub struct Params { /* fields omitted */ }

Route match information

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

Methods

impl Params
[src]

Check if there are any matched patterns

Check number of extracted parameters

Get matched parameter by name without type conversion

Get unprocessed part of path

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))
}

Return iterator to items in parameter container

Trait Implementations

impl Debug for Params
[src]

Formats the value using the given formatter. Read more

impl Clone for Params
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Index<&'a str> for Params
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl Index<usize> for Params
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl !Send for Params

impl !Sync for Params