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.
Required Methods§
fn get_models(&self) -> &[M]
fn get_models_mut(&mut self) -> &mut [M]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".