pub enum IndexValue<'a> {
Show 26 variants
Absent,
Nat8(u8),
Nat16(u16),
Nat32(u32),
Nat64(u64),
Nat128(u128),
U256(U256),
Ulid(Ulid),
Date(Date),
Duration(Duration),
Decimal(Decimal),
Timestamp(Timestamp),
Account(Account),
Subaccount(Subaccount),
Float64(Float64),
Float32(Float32),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
Principal(Principal),
Bool(bool),
Text(&'a str),
Blob(&'a [u8]),
UnitEnum {
definition: &'static TypeSchema,
ordinal: u8,
},
}Expand description
One exact ordered scalar operand for index prefixes and fluent comparisons. Operand types must match declared fields; integers are never implicitly widened, narrowed or coerced across signedness. This is a bounded scalar boundary, not a general expression/value representation.
Variants§
Absent
An absent optional component, ordered before present values.
Nat8(u8)
Exact u8 component.
Nat16(u16)
Exact u16 component.
Nat32(u32)
Exact u32 component.
Nat64(u64)
Exact u64 component.
Nat128(u128)
Exact u128 component.
U256(U256)
Exact unsigned 256-bit component, without narrower-integer coercion.
Ulid(Ulid)
Exact ULID identity, without integer or text coercion.
Date(Date)
Exact bounded calendar date; no integer or text coercion.
Duration(Duration)
Exact millisecond duration; no integer coercion.
Decimal(Decimal)
Exact decimal; the declared field scale must represent it without rounding.
Timestamp(Timestamp)
Exact millisecond timestamp; no integer coercion.
Account(Account)
Exact account identity; no coercion from another key type.
Subaccount(Subaccount)
Exact subaccount identity; no coercion from another key type.
Float64(Float64)
Finite canonical 64-bit float; no cross-width or integer coercion.
Float32(Float32)
Finite canonical 32-bit float; no cross-width or integer coercion.
Int8(i8)
Exact i8 component.
Int16(i16)
Exact i16 component.
Int32(i32)
Exact i32 component.
Int64(i64)
Exact i64 component.
Int128(i128)
Exact i128 component.
Principal(Principal)
Canonical identity, ordered by length then significant bytes.
Bool(bool)
False sorts before true; no numeric coercion.
Text(&'a str)
Exact UTF-8 bytes, without case folding or normalization.
Blob(&'a [u8])
Exact raw bytes in lexicographic order; shorter byte prefixes sort first.
UnitEnum
Unit enum in canonical variant-name order, bound to its complete definition.
Fields
definition: &'static TypeSchemaDeclared enum identity and alternatives.