pub enum Primitive {
Show 26 variants
Account,
Blob,
Bool,
Date,
Decimal,
Duration,
Float32,
Float64,
Int8,
Int16,
Int32,
Int64,
Int128,
IntBig,
Nat8,
Nat16,
Nat32,
Nat64,
Nat128,
NatBig,
Principal,
Subaccount,
Text,
Timestamp,
Ulid,
Unit,
}Variants§
Account
Blob
Bool
Date
Decimal
Duration
Float32
Float64
Int8
Int16
Int32
Int64
Int128
IntBig
Nat8
Nat16
Nat32
Nat64
Nat128
NatBig
Principal
Subaccount
Text
Timestamp
Ulid
Unit
Implementations§
Source§impl Primitive
impl Primitive
pub const fn supports_arithmetic(self) -> bool
pub const fn is_primary_key_component_encodable(self) -> bool
pub const fn is_primary_key_encodable(self) -> bool
pub const fn supports_remainder(self) -> bool
pub const fn supports_copy(self) -> bool
pub const fn supports_hash(self) -> bool
pub const fn supports_numeric_value(self) -> bool
pub const fn supports_ord(self) -> bool
pub const fn is_decimal(self) -> bool
pub const fn is_numeric(self) -> bool
pub const fn is_float(self) -> bool
pub const fn is_signed_int(self) -> bool
pub const fn is_unsigned_int(self) -> bool
pub const fn is_int(self) -> bool
Trait Implementations§
impl Copy for Primitive
Source§impl<'de> Deserialize<'de> for Primitive
impl<'de> Deserialize<'de> for Primitive
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Primitive
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnsafeUnpin for Primitive
impl UnwindSafe for Primitive
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.