pub struct Mapping {
pub models: IndexMap<ModelId, Model>,
}Expand description
Defines the correspondence between app-level models and database-level tables.
The mapping is constructed during schema building and remains immutable at runtime. It provides the translation layer that enables the query engine to convert model-oriented statements into table-oriented statements during the lowering phase.
Fields§
§models: IndexMap<ModelId, Model>Per-model mappings indexed by model identifier.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more