pub struct NavigationMeta {Show 19 fields
pub field_name: Cow<'static, str>,
pub kind: NavigationKind,
pub related_type_id: TypeId,
pub related_type_name: Cow<'static, str>,
pub foreign_key_field: Option<Cow<'static, str>>,
pub inverse_navigation: Option<Cow<'static, str>>,
pub through_type_id: Option<TypeId>,
pub through_table: Option<Cow<'static, str>>,
pub through_parent_fk: Option<Cow<'static, str>>,
pub through_related_fk: Option<Cow<'static, str>>,
pub through_parent_fk_index: usize,
pub through_related_fk_index: usize,
pub related_table: Option<Cow<'static, str>>,
pub fk_column: Option<Cow<'static, str>>,
pub referenced_key_column: Option<Cow<'static, str>>,
pub fk_row_index: usize,
pub pk_row_index: usize,
pub related_entity_meta: Option<fn() -> EntityTypeMeta>,
pub delete_behavior: Option<DeleteBehavior>,
}Expand description
Metadata describing a navigation property (relationship).
Corresponds to EFCore’s INavigation.
Fields§
§field_name: Cow<'static, str>The Rust field name of this navigation property.
kind: NavigationKindThe kind of navigation (BelongsTo, HasOne, HasMany).
The related entity’s TypeId.
The related entity’s type name.
foreign_key_field: Option<Cow<'static, str>>The foreign key property name on the dependent entity.
The inverse navigation field name on the related entity.
through_type_id: Option<TypeId>For many-to-many: the join entity TypeId.
through_table: Option<Cow<'static, str>>Join table name (many-to-many).
through_parent_fk: Option<Cow<'static, str>>FK column on the join table pointing to the principal entity.
FK column on the join table pointing to the related entity.
through_parent_fk_index: usizeColumn index in join-table rows for the principal FK.
Column index in join-table rows for the related FK.
Related entity table name (for eager loading).
fk_column: Option<Cow<'static, str>>Foreign key column on the dependent/related table.
referenced_key_column: Option<Cow<'static, str>>Referenced key column on the principal table.
fk_row_index: usizeColumn index in SELECT * rows for the FK (HasMany grouping).
pk_row_index: usizeColumn index in SELECT * rows for the related PK (BelongsTo lookup).
Resolves metadata for the related entity type (nested Include / ThenInclude).
delete_behavior: Option<DeleteBehavior>Delete behavior for this navigation. None means use the default
(Cascade for required FKs and M2M, Restrict for optional FKs).
Set via #[on_delete(Cascade|Restrict|SetNull|NoAction)].
Trait Implementations§
Source§fn clone(&self) -> NavigationMeta
fn clone(&self) -> NavigationMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more