jsonapi_deserialize

Trait JsonApiDeserialize

Source
pub trait JsonApiDeserialize: Sized {
    // Required method
    fn from_value(
        value: &Value,
        included: &mut IncludedMap<'_>,
    ) -> Result<Self, Error>;
}

Required Methods§

Source

fn from_value( value: &Value, included: &mut IncludedMap<'_>, ) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> JsonApiDeserialize for Option<T>

Source§

fn from_value( value: &Value, included: &mut IncludedMap<'_>, ) -> Result<Self, Error>

Source§

impl<T> JsonApiDeserialize for Vec<T>

Source§

fn from_value( value: &Value, included: &mut IncludedMap<'_>, ) -> Result<Self, Error>

Implementors§