[][src]Enum zohohorrorshow::errors::ErrorKind

pub enum ErrorKind {
    Reqwest(String),
    Chrono(String),
    EnvVar(String),
    Json(String),
    ParseInt(String),
    NoContent,
    ServerError(String),
    DisallowedRequestMethod {
        method: String,
        model: String,
    },
    MissingEntityId(usize),
    MissingEntityName(String),
    EmptyList(String),
    // some variants omitted
}

Varieties of error which may be encountered

Variants

Reqwest(String)

Wrapper for an error thrown by Reqwest

Chrono(String)

Wrapper for an error thrown by Chrono

EnvVar(String)

Wrapper for a std::env::VarError

Json(String)

Failure in JSON parsing

ParseInt(String)

Failure in Int parsing

NoContent

Server returned no content status code

ServerError(String)

Server returned error code

DisallowedRequestMethod

Client attempted to make a request with invalid HTTP method

Fields of DisallowedRequestMethod

method: String

The disallowed method which was called

model: String

The model on which this method was called

MissingEntityId(usize)

Entity sought by ID returned no results

MissingEntityName(String)

Entity sought by name returned no results

EmptyList(String)

Model sought en masse returned no results

Trait Implementations

impl Display for ErrorKind[src]

impl From<ErrorKind> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err