pub trait INavigationSetter: IEntityType {
// Provided methods
fn apply_has_many(
&mut self,
field: &str,
rows: &[Vec<DbValue>],
) -> EFResult<()> { ... }
fn apply_reference(&mut self, field: &str, row: &[DbValue]) -> EFResult<()> { ... }
fn load_nested_includes<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
parent_navigation: &'life1 str,
nested: &'life2 [IncludePath],
provider: &'life3 dyn IDatabaseProvider,
filter_map: Option<&'life4 HashMap<String, CompiledFilter>>,
) -> Pin<Box<dyn Future<Output = EFResult<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
}Expand description
Applies eagerly-loaded navigation data to an entity.
Auto-generated by #[derive(EntityType)] for types with navigation properties.
Provided Methods§
fn apply_has_many(&mut self, field: &str, rows: &[Vec<DbValue>]) -> EFResult<()>
fn apply_reference(&mut self, field: &str, row: &[DbValue]) -> EFResult<()>
Sourcefn load_nested_includes<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
parent_navigation: &'life1 str,
nested: &'life2 [IncludePath],
provider: &'life3 dyn IDatabaseProvider,
filter_map: Option<&'life4 HashMap<String, CompiledFilter>>,
) -> Pin<Box<dyn Future<Output = EFResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn load_nested_includes<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
parent_navigation: &'life1 str,
nested: &'life2 [IncludePath],
provider: &'life3 dyn IDatabaseProvider,
filter_map: Option<&'life4 HashMap<String, CompiledFilter>>,
) -> Pin<Box<dyn Future<Output = EFResult<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Loads nested includes after the parent navigation was populated.
filter_map carries per-table query filters (e.g. tenant isolation)
so that nested navigation loading respects the same filters as
top-level loading.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".