pub enum FieldType {
Show 26 variants
List {
item: &'static FieldType,
max_items: u32,
},
Named(TypeLink),
Nat8,
Nat16,
Nat32,
Int8,
Int16,
Int32,
Nat64,
Int64,
Nat128,
Int128,
U256,
Ulid,
Date,
Timestamp,
Duration,
Decimal {
scale: u32,
},
Float32,
Float64,
Bool,
Principal,
Subaccount,
Account,
Text {
max_bytes: u32,
},
Blob {
max_bytes: u32,
},
}Expand description
Stored value semantics supported by this increment.
Variants§
List
An ordered bounded list of scalars or named values.
Fields
Named(TypeLink)
A compiler-resolved named value. Scalar newtypes and unit enums support secondary keys. Primary and reference keys require supported primitives.
Nat8
Exact unsigned 8-bit integer.
Nat16
Exact unsigned 16-bit integer.
Nat32
Exact unsigned 32-bit integer.
Int8
Exact signed 8-bit integer.
Int16
Exact signed 16-bit integer.
Int32
Exact signed 32-bit integer.
Nat64
Exact unsigned 64-bit integer.
Int64
Exact signed 64-bit integer, without unsigned or floating-point coercion.
Nat128
Exact unsigned 128-bit integer, without narrowing or floating-point coercion.
Int128
Exact signed 128-bit integer, without narrowing or floating-point coercion.
U256
Exact unsigned 256-bit integer, stored as 32 big-endian bytes.
Ulid
Exact 16-byte ULID, ordered by timestamp prefix then remaining bits.
Date
Gregorian epoch days, bounded to years 0000 through 9999.
Timestamp
Signed Unix milliseconds; full i64 domain.
Duration
Nonnegative milliseconds; full u64 domain.
Decimal
Exact decimal, stored at the declared fractional scale without rounding.
Float32
Finite IEEE-754 single precision, canonical positive zero.
Float64
Finite IEEE-754 double precision, canonical positive zero.
Bool
Boolean, without numeric coercion.
Principal
Opaque IC identity, zero to 29 significant bytes; no authority policy.
Subaccount
Exact 32-byte opaque subaccount, ordered lexicographically.
Account
Platform account identity: owner then effective subaccount; absent and zero agree.
Text
Exact UTF-8 text, bounded in bytes without implicit normalization.
Blob
Exact binary bytes without UTF-8 interpretation or normalization.