pub enum DnaError {
Http(Error),
Api {
code: String,
message: String,
details: String,
},
Deserialize(Error),
UnexpectedResponse(String),
InvalidArgument(String),
}Expand description
All errors that can be returned by the DNA client.
Variants§
Http(Error)
HTTP transport / connection error.
Api
The API returned a non-2xx status code.
Deserialize(Error)
The API response body could not be parsed.
UnexpectedResponse(String)
A required field was missing from the API response.
InvalidArgument(String)
Invalid argument supplied by the caller.
Trait Implementations§
Source§impl Error for DnaError
impl Error for DnaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for DnaError
impl !UnwindSafe for DnaError
impl Freeze for DnaError
impl Send for DnaError
impl Sync for DnaError
impl Unpin for DnaError
impl UnsafeUnpin for DnaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more