Struct swagger_client::ApiError [] [src]

pub struct ApiError(pub String);

Very simple error type - just holds a description of the error. This is useful for human diagnosis and troubleshooting, but not for applications to parse. The justification for this is to deny applications visibility into the communication layer, forcing the application code to act solely on the logical responses that the API provides, promoting abstraction in the application code.

Trait Implementations

impl Error for ApiError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Clone for ApiError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for ApiError
[src]

[src]

Performs the conversion.

impl From<Error> for ApiError
[src]

[src]

Performs the conversion.

impl From<String> for ApiError
[src]

[src]

Performs the conversion.

impl Debug for ApiError
[src]

[src]

Formats the value using the given formatter.

impl Display for ApiError
[src]

[src]

Formats the value using the given formatter. Read more