pub struct ErrorResponse {
pub type_name: String,
pub message: String,
pub context: HashMap<String, Value>,
pub level: i16,
pub level_name: String,
pub status_code: i16,
pub datetime_iso: String,
pub application: String,
pub extra: Vec<String>,
}
Fields§
§type_name: String
§message: String
§context: HashMap<String, Value>
§level: i16
§level_name: String
§status_code: i16
§datetime_iso: String
§application: String
§extra: Vec<String>
Trait Implementations§
Source§impl Debug for ErrorResponse
impl Debug for ErrorResponse
Source§impl<'de> Deserialize<'de> for ErrorResponse
impl<'de> Deserialize<'de> for ErrorResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ErrorResponse
impl Display for ErrorResponse
Source§impl Error for ErrorResponse
impl Error for ErrorResponse
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Source§impl From<ErrorResponse> for Error
impl From<ErrorResponse> for Error
Source§fn from(err: ErrorResponse) -> Error
fn from(err: ErrorResponse) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorResponse
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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