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]
impl Clone for ApiError
fn clone(&self) -> ApiError
[src]
fn clone(&self) -> ApiError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ApiError
[src]
impl Debug for ApiError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ApiError
[src]
impl Display for ApiError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for ApiError
[src]
impl Error for ApiError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl<'a> From<&'a str> for ApiError
[src]
impl<'a> From<&'a str> for ApiError
impl From<String> for ApiError
[src]
impl From<String> for ApiError
impl From<Error> for ApiError
[src]
impl From<Error> for ApiError