Struct rustiful::JsonApiData [] [src]

pub struct JsonApiData<T> {
    pub id: Option<String>,
    pub lower_case_type: String,
    pub attributes: T,
}

Fields

Methods

impl<T> JsonApiData<T>
[src]

Check if there is an id present.

Trait Implementations

impl<T: Debug> Debug for JsonApiData<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for JsonApiData<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for JsonApiData<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for JsonApiData<T>
[src]

impl<'a, T> From<(T, &'a JsonApiParams<T::FilterField, T::SortField>)> for JsonApiData<T::Attrs> where
    T: ToJson + JsonApiResource,
    T::Attrs: From<(T, &'a JsonApiParams<T::FilterField, T::SortField>)>, 
[src]

Converts a (T, T::Params) to a JsonApiData<T>.

Performs the conversion.