#[derive(starknet::Event)]
attribute.
Fields can be marked as keys using the #[key]
attribute to serialize them as event keys.
Signature
Examples
Trait functions
append_keys_and_data
Serializes the keys and data for event emission. The keys array will contain:- The event name selector as the first key
- Any fields marked with #key as subsequent keys
Signature
deserialize
Deserializes events keys and data back into the original event structure. ReturnsNone
if deserialization fails.