Struct jsonapi_rs::api::DocumentError
source · pub struct DocumentError {
pub errors: JsonApiErrors,
pub links: Option<Links>,
pub meta: Option<Meta>,
pub jsonapi: Option<JsonApiInfo>,
}
Expand description
A struct that defines an error state for a JSON:API document
Fields§
§errors: JsonApiErrors
§links: Option<Links>
§meta: Option<Meta>
§jsonapi: Option<JsonApiInfo>
Trait Implementations§
source§impl Clone for DocumentError
impl Clone for DocumentError
source§fn clone(&self) -> DocumentError
fn clone(&self) -> DocumentError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DocumentError
impl Debug for DocumentError
source§impl Default for DocumentError
impl Default for DocumentError
source§fn default() -> DocumentError
fn default() -> DocumentError
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DocumentError
impl<'de> Deserialize<'de> for DocumentError
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 PartialEq for DocumentError
impl PartialEq for DocumentError
source§fn eq(&self, other: &DocumentError) -> bool
fn eq(&self, other: &DocumentError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocumentError
impl Serialize for DocumentError
impl StructuralPartialEq for DocumentError
Auto Trait Implementations§
impl RefUnwindSafe for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnwindSafe for DocumentError
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