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]

[src]

Returns Some if the conversion was successful, None otherwise.

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Value
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.