Module candy_rs::value

source ·

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 a Vec<u8> blob.
  • ToCandyValue is a trait that defines a method to_candy, which is used to convert a value of any type into a CandyShared enum. This trait can be implemented by any type that can be converted into a CandyShared enum, allowing for seamless integration with the CandyShared type in Rust code.