#[derive(ScryptoSbor)]
{
// Attributes available to this derive:
#[sbor]
}
Expand description
A shortcut for ScryptoCategorize
, ScryptoEncode
, ScryptoDecode
, and ScryptoDescribe
derives.
§Example
ⓘ
#[derive(ScryptoSbor)]
pub struct MyStruct {
pub field_1: u32,
pub field_2: String,
}