[][src]Struct japi::Relationship

pub struct Relationship {
    pub links: Option<Links>,
    pub data: OptionalVec<Identifier>,
    pub meta: Option<Meta>,
}

A relationship object

See the JSON:API docs for more information

Fields

links: Option<Links>

MUST contain at least a self link or a related link

data: OptionalVec<Identifier>

The objects this relationship links to

meta: Option<Meta>

Non-standard meta information

Trait Implementations

impl Clone for Relationship[src]

impl Debug for Relationship[src]

impl Default for Relationship[src]

impl<'de> Deserialize<'de> for Relationship[src]

impl PartialEq<Relationship> for Relationship[src]

impl Serialize for Relationship[src]

impl StructuralPartialEq for Relationship[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.