[][src]Enum rustnao::ErrType

pub enum ErrType {
    InvalidURL(String),
    InvalidSerde(String),
    InvalidCode {
        code: i32,
        message: String,
    },
    InvalidRequest(String),
}

The specific type of error that can occur.

Variants

InvalidURL(String)

An error when forming the URL for the API.

The data provided is the error found

InvalidSerde(String)

An error when trying to deserialize the resulting JSON from the API

The data provided is the error found

InvalidCode

An error when receiving an unsuccessful code from the SauceNAO API.

The data provided is the error code and message

Fields of InvalidCode

code: i32

The error code from SauceNAO

message: String

The message showing the cause of the error from SauceNAO

InvalidRequest(String)

An error when trying to send an invalid request to the API.

The data provided is the error code and message

Trait Implementations

impl Eq for ErrType[src]

impl PartialEq<ErrType> for ErrType[src]

impl Clone for ErrType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<ErrType> for Error[src]

impl Debug for ErrType[src]

impl Display for ErrType[src]

Auto Trait Implementations

impl Send for ErrType

impl Sync for ErrType

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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

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