[][src]Struct modio::Error

pub struct Error { /* fields omitted */ }

The Errors that may occur when using Modio.

Implementations

impl Error[src]

pub fn is_auth(&self) -> bool[src]

Returns true if the API key/access token is incorrect, revoked, expired or the request needs a different authentication method.

pub fn is_builder(&self) -> bool[src]

Returns true if the error is from a type Builder.

pub fn is_download(&self) -> bool[src]

Returns true if the error is from a DownloadAction.

pub fn is_ratelimited(&self) -> bool[src]

Returns true if the rate limit associated with credentials has been exhausted.

pub fn is_status(&self) -> bool[src]

Returns true if the error was generated from a response.

pub fn is_validation(&self) -> bool[src]

Returns true if the error contains validation errors.

pub fn is_decode(&self) -> bool[src]

Returns true if the error is related to serialization.

pub fn error_ref(&self) -> Option<u16>[src]

Returns modio's error reference code.

See the Error Codes docs for more information.

pub fn status(&self) -> Option<StatusCode>[src]

Returns status code if the error was generated from a response.

pub fn validation(&self) -> Option<(&String, &HashMap<String, String>)>[src]

Returns validation message & errors from the response.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error 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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.