Derive Macro scrypto::prelude::ScryptoEvent

#[derive(ScryptoEvent)]
Expand description

Derive code for implementing the required logic to mark a type as being an event.

§Example

use scrypto::prelude::*;

#[derive(ScryptoEvent)]
pub struct MyStruct {
    pub field_1: u32,
    pub field_2: String,
}