pub struct FieldModel { /* private fields */ }Expand description
FieldModel
Runtime field metadata surfaced by macro-generated EntityModel values.
This is the smallest unit consumed by predicate validation, planning, and executor-side plan checks.
Implementations§
Source§impl FieldModel
impl FieldModel
Sourcepub const fn new(name: &'static str, kind: FieldKind) -> Self
pub const fn new(name: &'static str, kind: FieldKind) -> Self
Build one runtime field descriptor.
Sourcepub const fn new_with_storage_decode(
name: &'static str,
kind: FieldKind,
storage_decode: FieldStorageDecode,
) -> Self
pub const fn new_with_storage_decode( name: &'static str, kind: FieldKind, storage_decode: FieldStorageDecode, ) -> Self
Build one runtime field descriptor with an explicit persisted decode contract.
Sourcepub const fn storage_decode(&self) -> FieldStorageDecode
pub const fn storage_decode(&self) -> FieldStorageDecode
Return the persisted field decode contract.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldModel
impl RefUnwindSafe for FieldModel
impl Send for FieldModel
impl Sync for FieldModel
impl Unpin for FieldModel
impl UnsafeUnpin for FieldModel
impl UnwindSafe for FieldModel
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