use serde::Deserialize;
use std::error::Error;
use std::fmt;
#[derive(Debug, Deserialize)]
pub struct ResponseError {
pub code: String,
pub message: String,
}
impl fmt::Display for ResponseError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "SuperError is here!")
}
}
impl Error for ResponseError {
fn source(&self) -> Option<&(dyn Error + 'static)> {
match *self {
_ => None,
}
}
}