Enums
CandyShared
is a Rust enum that provides a wrapper type for convenient data manipulation inside ICP canisters. This enum includes various data types that can be used for communication between canisters, including integers, floats, text, boolean, and more.
Traits
ToBlob
is a trait that is implemented by types that can be converted to aVec<u8>
blob.ToCandyValue
is a trait that defines a methodto_candy
, which is used to convert a value of any type into aCandyShared
enum. This trait can be implemented by any type that can be converted into aCandyShared
enum, allowing for seamless integration with theCandyShared
type in Rust code.