pub struct EntityModel {
pub path: &'static str,
pub entity_name: &'static str,
pub primary_key: &'static EntityFieldModel,
pub fields: &'static [EntityFieldModel],
pub indexes: &'static [&'static IndexModel],
}Expand description
EntityModel
Macro-generated runtime schema snapshot for a single entity. The planner and predicate validator consume this model directly.
Fields§
§path: &'static strFully-qualified Rust type path (for dispatch and diagnostics).
entity_name: &'static strStable external name used in keys and routing.
primary_key: &'static EntityFieldModelPrimary key field (points at an entry in fields).
fields: &'static [EntityFieldModel]Ordered field list (authoritative for runtime planning).
indexes: &'static [&'static IndexModel]Index definitions (field order is significant).
Auto Trait Implementations§
impl Freeze for EntityModel
impl RefUnwindSafe for EntityModel
impl Send for EntityModel
impl Sync for EntityModel
impl Unpin for EntityModel
impl UnwindSafe for EntityModel
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