pub trait Relatable: Record {
// Required methods
fn relations(&self) -> &Relations;
fn relations_mut(&mut self) -> &mut Relations;
fn load_relation(
name: String,
parents: &mut Vec<Self>,
) -> BoxFuture<'_, Result<()>>;
}Expand description
A model that declares relations. Implemented by #[luxid::model].
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".