pub struct Document<A> {
pub data: Resource<A>,
}Expand description
A single-resource JSON:API document — the body of e.g. GET /v1/apps/{id} or the response to a POST/PATCH.
Fields§
§data: Resource<A>Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for Document<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Document<A>where
A: Deserialize<'de>,
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
Auto Trait Implementations§
impl<A> Freeze for Document<A>
impl<A> RefUnwindSafe for Document<A>where
Resource<A>: RefUnwindSafe,
impl<A> Send for Document<A>
impl<A> Sync for Document<A>
impl<A> Unpin for Document<A>
impl<A> UnsafeUnpin for Document<A>where
Resource<A>: UnsafeUnpin,
impl<A> UnwindSafe for Document<A>where
Resource<A>: UnwindSafe,
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