Struct jsonapi_rs::api::DocumentData
source · pub struct DocumentData {
pub data: Option<PrimaryData>,
pub included: Option<Resources>,
pub links: Option<Links>,
pub meta: Option<Meta>,
pub jsonapi: Option<JsonApiInfo>,
}
Expand description
A struct that defines properties for a JSON:API document that contains no errors
Fields§
§data: Option<PrimaryData>
§included: Option<Resources>
§links: Option<Links>
§meta: Option<Meta>
§jsonapi: Option<JsonApiInfo>
Trait Implementations§
source§impl Clone for DocumentData
impl Clone for DocumentData
source§fn clone(&self) -> DocumentData
fn clone(&self) -> DocumentData
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 DocumentData
impl Debug for DocumentData
source§impl Default for DocumentData
impl Default for DocumentData
source§fn default() -> DocumentData
fn default() -> DocumentData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DocumentData
impl<'de> Deserialize<'de> for DocumentData
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 DocumentData
impl PartialEq for DocumentData
source§fn eq(&self, other: &DocumentData) -> bool
fn eq(&self, other: &DocumentData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DocumentData
impl Serialize for DocumentData
impl StructuralPartialEq for DocumentData
Auto Trait Implementations§
impl RefUnwindSafe for DocumentData
impl Send for DocumentData
impl Sync for DocumentData
impl Unpin for DocumentData
impl UnwindSafe for DocumentData
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