pub trait IncludeNavigation<T>: Entity {
// Required method
fn set_included_navigation(
&mut self,
navigation: &str,
value: Option<T>,
) -> Result<(), OrmError>;
}Expand description
Contract generated for entities that can receive an included single navigation value.
This is used by DbSetQuery::include::<T>(...) for belongs_to and
has_one navigations. Collection includes use a different loading strategy
and are intentionally not part of this contract.
Required Methods§
Attaches a loaded navigation value to the field named by navigation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.