pub enum ScalarType {
Show 26 variants
Account,
Blob {
max_len: Option<u32>,
},
Bool,
Date,
Decimal {
scale: u32,
},
Duration,
Float32,
Float64,
Int8,
Int16,
Int32,
Int64,
Int128,
IntBig {
max_bytes: u32,
},
Principal,
Subaccount,
Text {
max_len: Option<u32>,
},
Timestamp,
Nat8,
Nat16,
Nat32,
Nat64,
Nat128,
NatBig {
max_bytes: u32,
},
Ulid,
Unit,
}Expand description
Exact scalar field contract required by accepted-schema lowering.
Variants§
Account
ICRC account.
Blob
Binary value with an optional maximum byte length.
Bool
Boolean.
Date
Day-precision date.
Decimal
Fixed-point decimal with exact accepted scale.
Duration
Millisecond duration.
Float32
Finite 32-bit float.
Float64
Finite 64-bit float.
Int8
Signed 8-bit integer.
Int16
Signed 16-bit integer.
Int32
Signed 32-bit integer.
Int64
Signed 64-bit integer.
Int128
Signed 128-bit integer.
IntBig
Arbitrary-precision signed integer with an encoded-byte bound.
Principal
Principal.
Subaccount
Fixed-width subaccount.
Text
Text with an optional maximum Unicode-scalar length.
Timestamp
Millisecond timestamp.
Nat8
Unsigned 8-bit integer.
Nat16
Unsigned 16-bit integer.
Nat32
Unsigned 32-bit integer.
Nat64
Unsigned 64-bit integer.
Nat128
Unsigned 128-bit integer.
NatBig
Arbitrary-precision unsigned integer with an encoded-byte bound.
Ulid
ULID.
Unit
Unit.
Implementations§
Source§impl ScalarType
impl ScalarType
Sourcepub const fn kind(self) -> ScalarKind
pub const fn kind(self) -> ScalarKind
Return the intrinsic scalar capability kind.
Trait Implementations§
Source§impl Clone for ScalarType
impl Clone for ScalarType
Source§fn clone(&self) -> ScalarType
fn clone(&self) -> ScalarType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more