Struct json_api::ResourceObject
source · [−]pub struct ResourceObject<A> {
pub id: Option<String>,
pub kind: String,
pub attributes: Option<A>,
pub relationships: Option<Value>,
pub links: Option<LinksObject>,
pub meta: Option<Value>,
}Expand description
A Resource Object. Spec
Fields
id: Option<String>kind: Stringattributes: Option<A>relationships: Option<Value>links: Option<LinksObject>meta: Option<Value>Trait Implementations
sourceimpl<A: Debug> Debug for ResourceObject<A>
impl<A: Debug> Debug for ResourceObject<A>
sourceimpl<'de, A> Deserialize<'de> for ResourceObject<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ResourceObject<A>where
A: Deserialize<'de>,
sourcefn 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> RefUnwindSafe for ResourceObject<A>where
A: RefUnwindSafe,
impl<A> Send for ResourceObject<A>where
A: Send,
impl<A> Sync for ResourceObject<A>where
A: Sync,
impl<A> Unpin for ResourceObject<A>where
A: Unpin,
impl<A> UnwindSafe for ResourceObject<A>where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more