Expand description
Module: value
Responsibility: canonical dynamic values plus typed runtime conversion. Does not own: planner semantics, primary-key encoding, or persisted decode policy. Boundary: shared value/domain surface used by query, executor, and storage layers.
Value is the runtime canonical value model. Public canister/query boundaries
should prefer InputValue for caller-supplied literals and OutputValue for
result payloads, so API surfaces do not depend on runtime execution internals.
Structs§
Enums§
- Coercion
Family - CoercionFamily
- Input
Value - MapValue
Error - MapValueError
- Output
Value - Runtime
Value Kind - Schema affordance classification for query planning and validation.
- Schema
Invariant Error - SchemaInvariantError
- Text
Mode - Value
- Value
Tag - ValueTag
Traits§
- Coercion
Family Ext - CoercionFamilyExt
- Collection
- Explicit iteration contract for generated list and set wrapper types.
- MapCollection
- Explicit iteration contract for generated map wrapper types.
- Runtime
Value Decode - Runtime-only reconstruction of a typed value from the canonical
Valueunion. - Runtime
Value Encode - Runtime-only lowering from a typed value into the canonical
Valueunion. - Runtime
Value Meta - Schema/queryability metadata for one typed runtime value surface.
Functions§
- render_
output_ value_ text - Render one output value into a stable text form for row projection payloads.
- runtime_
value_ btree_ map_ from_ value - Decode a canonical runtime map into a typed map, rejecting decoded key collisions.
- runtime_
value_ btree_ set_ from_ value - Decode a runtime list into a typed set, rejecting decoded duplicates.
- runtime_
value_ collection_ to_ value - Lower a generated collection wrapper into a runtime list value.
- runtime_
value_ from_ value - Reconstruct one typed runtime value without naming its decode trait at the call site.
- runtime_
value_ from_ vec_ into - Convert generated list wrapper input entries into their stored item type.
- runtime_
value_ from_ vec_ into_ btree_ map - Convert generated map wrapper input entries into their stored key/value types.
- runtime_
value_ from_ vec_ into_ btree_ set - Convert generated set wrapper input entries into their stored item type.
- runtime_
value_ into - Apply one generated newtype input conversion.
- runtime_
value_ map_ collection_ to_ value - Lower a generated map wrapper into a canonical runtime map value.
- runtime_
value_ to_ value - Lower one typed runtime value without naming its encode trait at the call site.
- runtime_
value_ vec_ from_ value - Decode a runtime list into a typed vector.