macro_rules! jsonapi_model {
($model:ty; $type:expr) => { ... };
($model:ty; $type:expr;
has one $( $has_one:ident ),*
) => { ... };
($model:ty; $type:expr;
has many $( $has_many:ident ),*
) => { ... };
($model:ty; $type:expr;
has one $( $has_one:ident ),*;
has many $( $has_many:ident ),*
) => { ... };
}
Expand description
When applied this macro implements the
JsonApiModel
trait for the provided type