pub trait JsonApiArray<M> {
// Required methods
fn get_models(&self) -> &[M];
fn get_models_mut(&mut self) -> &mut [M];
}
Expand description
Trait which allows a has many
relationship to be optional.
pub trait JsonApiArray<M> {
// Required methods
fn get_models(&self) -> &[M];
fn get_models_mut(&mut self) -> &mut [M];
}
Trait which allows a has many
relationship to be optional.