pub struct Error {
pub id: Option<String>,
pub links: Option<Links>,
pub status: Option<String>,
pub code: Option<String>,
pub title: Option<String>,
pub detail: Option<String>,
pub source: Option<ErrorSource>,
pub meta: Option<Meta>,
}
Expand description
Additional information about any errors encountered while processing a request
See the JSON:API docs for more information
Fields§
§id: Option<String>
A unique identifier for this particular occurrence of the problem
links: Option<Links>
Should contain an about
link that leads to further details about this
particular occurrence of the problem
status: Option<String>
The HTTP status code applicable to this problem
code: Option<String>
An application-specific error code
title: Option<String>
A short human-readable summary of the problem that SHOULD NOT change between occurrences
detail: Option<String>
A human-readable explaination specific to this occurence of the problem
source: Option<ErrorSource>
Information about the source of the Error
meta: Option<Meta>
Non-standard meta information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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