Module jsonapi_rs::model

source ·
Expand description

Defines the JsonApiModel trait. This is primarily used in conjunction with the jsonapi_model! macro to allow arbitrary structs which implement Deserialize to be converted to/from a JsonApiDocument or Resource

Re-exports

  • pub use crate::api::*;

Structs

Traits

  • A trait for any struct that can be converted from/into a Resource. The only requirement is that your struct has an id: String field. You shouldn’t be implementing JsonApiModel manually, look at the jsonapi_model! macro instead.

Functions