#[derive(ScryptoEvent)]
Derive code for implementing the required logic to mark a type as being an event.
use scrypto::prelude::*; #[derive(ScryptoEvent)] pub struct MyStruct { pub field_1: u32, pub field_2: String, }