Struct swagger::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 Clone for ApiError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ApiError
[src]

Formats the value using the given formatter. Read more

impl Display for ApiError
[src]

Formats the value using the given formatter. Read more

impl Error for ApiError
[src]

This method is soft-deprecated. Read more

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

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

Performs the conversion.

impl From<String> for ApiError
[src]

Performs the conversion.

impl From<Error> for ApiError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ApiError

impl Sync for ApiError