DataType

Trait DataType 

Source
pub trait DataType:
    Clone
    + Debug
    + Display
    + PartialEq
    + Eq
    + PartialOrd
    + Ord
    + Hash
    + Encode
    + CandidType
    + Serialize
    + Into<Value>
    + for<'de> Deserialize<'de> { }
Expand description

A trait representing a data type that can be stored in the DBMS.

This is an umbrella trait that combines several other traits to ensure that any type implementing DataType can be cloned, compared, hashed, encoded, and serialized/deserialized using both Candid and Serde.

Also it is used by the DBMS to compare and sort values of different data types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§