Enum digitalocean::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    Reqwest(Error),
    SerdeJson(Error),
    UrlParse(ParseError),
    Unauthorized,
    UnprocessableEntity(Value),
    UnexpectedStatus(StatusCode),
    NotFound,
}

The kind of an error.

Variants

A convenient variant for String.

The reqest's API key is invalid or not authorized to view this resource.

The item exists (possibly on another account), the limit on this item has been reached, or this request is otherwise unprocessable.

An unexpected status code was returned from the API. Please raise a ticket.

The item does not exist or otherwise cannot be found.

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.