Crate sbor_derive

Source

Macros§

eager_replace
NOTE: This should probably be moved out of sbor to its own crate.

Derive Macros§

BasicCategorize
Derive code that returns the value kind - specifically for Basic SBOR.
BasicDecode
Derive code that decodes this data structure from a byte array - specifically for Basic SBOR.
BasicDescribe
Derive code that describes the type - specifically for Basic SBOR.
BasicEncode
Derive code that encodes this data structure - specifically for Basic SBOR.
BasicSbor
A shortcut for BasicCategorize, BasicEncode, BasicDecode, and BasicDescribe derives.
BasicSborAssertion
A macro for outputting tests and marker traits to assert that a type has maintained its shape over time.
Categorize
Derive code that returns the value kind.
Decode
Derive code that decodes this data structure from a byte array.
Describe
Derive code that describes this type.
Encode
Derive code that encodes this data structure
PermitSborAttributes
An empty derive which exists solely to allow the helper “sbor” attribute to be used without generating a compile error.
Sbor
A shortcut for Categorize, Encode, Decode, and Describe derives.