Modules§
- address
- RE bech32 address library.
- constants
- RE protocol constants
- crypto
- RE crypto library
- data
- RE scrypto data model.
- math
- RE math library.
- network
- RE network identifier model.
- prelude
- Each module should have its own prelude, which:
- state
- Common models for state changes in RE
- time
- RE time library.
- traits
- types
- RE types.
Macros§
- count
- define_
wrapped_ hash - i
- Creates a safe integer from literals. You must specify the type of the integer you want to create.
- manifest_
args - manifest_
type - scrypto_
args - scrypto_
describe_ for_ manifest_ type - test_
add_ all - test_
from_ all_ types_ builtin_ safe - test_
from_ all_ types_ safe_ builtin - test_
from_ all_ types_ safe_ safe - test_
from_ builtin - test_
impl - test_
math - test_
signed - test_
unsigned - to_
manifest_ value_ and_ unwrap - well_
known_ scrypto_ custom_ type - A macro for implementing sbor traits (for statically sized types).
Traits§
- Categorize
- The
Categorize
trait marks a rust type as having a fixed value kind for SBOR encoding/decoding. - Decode
- A data structure that can be decoded from a byte array using SBOR.
- Encode
- A data structure that can be serialized into a byte array using SBOR.
Derive Macros§
- Categorize
- Derive code that returns the value kind.
- Decode
- Derive code that decodes this data structure from a byte array.
- Encode
- Derive code that encodes this data structure
- Manifest
Categorize - Derives code for categorizing a struct or enum with Manifest value model.
- Manifest
Decode - Derives code for decoding a struct or enum with Manifest value model.
- Manifest
Encode - Derives code for encoding a struct or enum with Manifest value model.
- Manifest
Sbor - A shortcut for
ManifestCategorize
,ManifestEncode
andManifestDecode
derives. - Sbor
- A shortcut for
Categorize
,Encode
,Decode
, andDescribe
derives. - Scrypto
Categorize - Derives code for categorizing a struct or enum with Scrypto value model.
- Scrypto
Decode - Derives code for decoding a struct or enum with Scrypto value model.
- Scrypto
Encode - Derives code for encoding a struct or enum with Scrypto value model.
- Scrypto
Event - Derive code for implementing the required logic to mark a type as being an event.
- Scrypto
Sbor - A shortcut for
ScryptoCategorize
,ScryptoEncode
,ScryptoDecode
, andScryptoDescribe
derives. - Scrypto
Sbor Assertion - A macro for outputting tests and marker traits to assert that a type has maintained its shape over time.