Derive Macro scrypto::prelude::NonFungibleData

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

Derive code that describe a non-fungible data structure.

§Example

use scrypto::prelude::*;

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