#[derive(NonFungibleData)] { // Attributes available to this derive: #[mutable] }
Derive code that describe a non-fungible data structure.
use scrypto::prelude::*; #[derive(NonFungibleData)] pub struct MyStruct { pub field_1: u32, #[mutable] pub field_2: String, }