Enum params::Value [] [src]

pub enum Value {
    Null,
    Boolean(bool),
    I64(i64),
    U64(u64),
    F64(f64),
    String(String),
    File(File),
    Array(Vec<Value>),
    Map(Map),
}

A representation of all possible types of request parameters.

Variants

A null from the request's JSON body.

A true or false from the request's JSON body.

A signed integer from the request's JSON body.

An unsigned integer from the request's JSON body.

A floating point number from the request's JSON body.

Either a string from the request's JSON body or a plain text value from the request's URL (GET) parameters, application/x-www-form-urlencoded parameters, or multipart/form-data parameters.

A temporary file processed from a multipart/form-data request.

Either an array of JSON values or an amalgamation of URL (GET) parameters, application/x-www-form-urlencoded parameters, or multipart/form-data parameters. Such parameters should be in the form my_list[]=1&my_list[]=2 to be processed into this variant.

Either an object of JSON keys and values or an amalgamation of URL (GET) parameters, application/x-www-form-urlencoded parameters, or multipart/form-data parameters. Such parameters should be in the form my_map[x]=1&my_map[y]=2 to be processed into this variant.

Trait Implementations

impl FromValue for Value
[src]

Returns Some if the conversion was successful, None otherwise.

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter.