felt252
felt252
Serde
trait provides the necessary serialization and deserialization capabilities for your custom types. For most simple types, you can derive this trait automatically:
Serde
trait manually. This gives you control over how your type is serialized and deserialized.The Serde
trait is distinct from the Store
trait - Serde
is for passing data in and out of entrypoints, while Store
is for persisting data in contract storage.