pub enum EntityFieldKind {
Show 28 variants
Account,
Blob,
Bool,
Date,
Decimal,
Duration,
Enum,
E8s,
E18s,
Float32,
Float64,
Int,
Int128,
IntBig,
Principal,
Subaccount,
Text,
Timestamp,
Uint,
Uint128,
UintBig,
Ulid,
Unit,
Ref {
target_path: &'static str,
target_entity_name: &'static str,
target_store_path: &'static str,
key_kind: &'static Self,
strength: RelationStrength,
},
List(&'static Self),
Set(&'static Self),
Map {
key: &'static Self,
value: &'static Self,
},
Unsupported,
}Expand description
EntityFieldKind
Minimal runtime type surface needed by planning, validation, and execution.
This is aligned with Value variants and intentionally lossy: it encodes
only the shape required for predicate compatibility and index planning.
Variants§
Account
Blob
Bool
Date
Decimal
Duration
Enum
E8s
E18s
Float32
Float64
Int
Int128
IntBig
Principal
Subaccount
Text
Timestamp
Uint
Uint128
UintBig
Ulid
Unit
Ref
Typed entity reference; key_kind reflects the referenced key type.
strength encodes strong vs. weak relation intent.
List(&'static Self)
Set(&'static Self)
Map
Unsupported
Marker for fields that are not filterable or indexable.
Implementations§
Source§impl EntityFieldKind
impl EntityFieldKind
Sourcepub const fn is_deterministic_collection_shape(&self) -> bool
pub const fn is_deterministic_collection_shape(&self) -> bool
Returns true if this field shape is permitted in
persisted or query-visible schemas under the current
determinism policy.
This shape-level check is structural only; query-time policy enforcement (for example, map predicate fencing) is applied at query construction and validation boundaries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityFieldKind
impl RefUnwindSafe for EntityFieldKind
impl Send for EntityFieldKind
impl Sync for EntityFieldKind
impl Unpin for EntityFieldKind
impl UnsafeUnpin for EntityFieldKind
impl UnwindSafe for EntityFieldKind
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