[][src]Struct j_api::JsonApi

pub struct JsonApi { /* fields omitted */ }

Methods

impl JsonApi[src]

pub fn new() -> Self[src]

pub fn data(resource: impl ResourceTrait) -> Self[src]

pub fn collection(resources: Vec<impl ResourceTrait>) -> Self[src]

pub fn error(error: JsonApiError) -> Self[src]

pub fn errors(errors: Vec<JsonApiError>) -> Self[src]

pub fn to_response(&self) -> Result<Self, Vec<ValidationError>>[src]

Trait Implementations

impl Clone for JsonApi[src]

impl Debug for JsonApi[src]

impl Default for JsonApi[src]

impl Deserialize<'static> for JsonApi[src]

impl Serialize for JsonApi[src]

Auto Trait Implementations

impl RefUnwindSafe for JsonApi

impl Send for JsonApi

impl Sync for JsonApi

impl Unpin for JsonApi

impl UnwindSafe for JsonApi

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> 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.