Derive Macro scrypto::prelude::ScryptoCategorize

#[derive(ScryptoCategorize)]
{
    // Attributes available to this derive:
    #[sbor]
}
Expand description

Derives code for categorizing a struct or enum with Scrypto value model.

§Example

use scrypto::prelude::*;

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