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]
fn clone(&self) -> ApiError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ApiError
[src]
impl Display for ApiError
[src]
impl Error for ApiError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more