Enum resty::request::params::Error [] [src]

pub enum Error {
    UnknownParameter(String),
    NotFound,
    InvalidType {
        param: String,
        path: String,
        error: String,
    },
    InvalidSegment {
        got: String,
        expected: String,
    },
}

Error while parsing URL for parameters.

Variants

A requested dynamic paremeter name was not declared.

Expected segment or parameter was not found in the path.

Cannot parse path to expected type.

Fields of InvalidType

Parameter name

Path segment

Parsing error

Unexpected path segment.

Fields of InvalidSegment

Got

Expected

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

[src]

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

[src]

This method tests for !=.