Modules§
- additional_
attributes - Documentation for Additional Attributes
Macros§
Structs§
- Blueprint
Id - Blueprint
Info - Core object state, persisted in
TypeInfoSubstate
. - Blueprint
Type Identifier - Buffer
- Component
Address - Address to a global component
- Component
Royalty Config - Royalty rules
- Epoch
- A type-safe consensus epoch number.
- Event
Type Identifier - Identifies a specific event schema emitter by some emitter RENode.
- FnIdentifier
- Fully
Scoped Type Id - An identifier for a type under a given node’s schema context in the Radix network.
- Global
Address - Address to a global entity
- Global
Address Phantom - Global
Address Reservation - Indexed
Scrypto Value - Internal
Address - Address to a local entity
- KeyValue
Store Info - KeyValue
Store Init - KeyValue
Store Init Entry - NodeId
- The unique identifier of a (stored) node.
- NonFungible
Global Id - Represents the global id of a non-fungible.
- Object
Info - Package
Address - Address to a global package
- Partition
Number - The unique identifier of a node module.
- Partition
Offset - Resource
Address - Address to a global resource
- Round
- A type-safe consensus round number within a single epoch.
- Schema
Hash - Represents a particular schema under a package
- Scoped
Type Id - An identifier for a type in the context of a schema.
- Slice
Enums§
- Access
Controller Partition Offset - Account
Locker Partition Offset - Account
Partition Offset - Auth
Zone Field - Boot
Loader Field - Client
Costing Entry - Component
Field - Component
Royalty Partition Offset - Consensus
Manager Partition Offset - Emitter
- Entity
Type - An enum which represents the different addressable entities.
- Fungible
Bucket Field - Fungible
Proof Field - Fungible
Resource Manager Partition Offset - Fungible
Vault Partition Offset - Generic
Substitution - A reference to the type to substitute with for the case of generics.
- Global
Caller - Level
- Represents the level of a log message.
- Metadata
Partition Offset - Multi
Resource Pool Partition Offset - NonFungible
Bucket Field - NonFungible
Proof Field - NonFungible
Resource Manager Partition Offset - NonFungible
Vault Partition Offset - Object
Type - OneResource
Pool Partition Offset - Outer
Object Info - Package
Code - Package
Partition Offset - Package
Royalty - Royalty rules
- Package
Royalty Config - Royalty rules
- Parse
Component Address Error - Parse
Error - The
ParseError
enum is a collection of all the possible reasons an enum can fail to parse from a string. - Parse
Global Address Error - Parse
Internal Address Error - Parse
NonFungible Global IdError - Represents an error when parsing non-fungible address.
- Parse
Package Address Error - Parse
Resource Address Error - Protocol
Update Status Field - Role
Assignment Partition Offset - Royalty
Amount - Royalty
Field - Substate
Key - The unique identifier of a substate within a node module.
- Substate
KeyOr Ref - Substate
KeyRef - Transaction
Tracker Field - TwoResource
Pool Partition Offset - Type
Info Field - Validator
Partition Offset - Worktop
Field
Constants§
- BOOT_
LOADER_ PARTITION - Used only with TRANSACTION_TRACKER Node for boot loading
- BOOT_
LOADER_ RESERVED_ NODE_ ID_ FIRST_ BYTE - MAIN_
BASE_ PARTITION - METADATA_
BASE_ PARTITION - METADATA_
KV_ STORE_ PARTITION_ OFFSET - PROTOCOL_
UPDATE_ STATUS_ PARTITION - Used only with TRANSACTION_TRACKER Node for protocol updating
- ROLE_
ASSIGNMENT_ BASE_ PARTITION - ROLE_
ASSIGNMENT_ FIELDS_ PARTITION - ROLE_
ASSIGNMENT_ FIELDS_ PARTITION_ OFFSET - ROLE_
ASSIGNMENT_ MUTABILITY_ PARTITION_ OFFSET - ROLE_
ASSIGNMENT_ ROLE_ DEF_ PARTITION - ROLE_
ASSIGNMENT_ ROLE_ DEF_ PARTITION_ OFFSET - ROYALTY_
BASE_ PARTITION - ROYALTY_
CONFIG_ PARTITION - ROYALTY_
CONFIG_ PARTITION_ OFFSET - ROYALTY_
FIELDS_ PARTITION - ROYALTY_
FIELDS_ PARTITION_ OFFSET - SCHEMAS_
PARTITION - TYPE_
INFO_ FIELD_ PARTITION
Traits§
- AsStatic
Ref Deprecated - A cheap reference-to-reference conversion. Used to convert a value to a
reference value with
'static
lifetime within generic code. - Blueprint
Partition Offset - Collection
Descriptor - Enum
Count - A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros
. - Enum
Message - Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving
EnumMessage
and annotating your variants with#[strum(message="...")]
. - Enum
Property EnumProperty
is a trait that makes it possible to store additional information with enum variants. This trait is designed to be used with the macro of the same name in thestrum_macros
crate. Currently, the only string literals are supported in attributes, the other methods will be implemented as additional attribute types become stabilized.- Field
Descriptor - From
Public Key - Into
Enum Iterator - This trait designates that an
Enum
can be iterated over. It can be auto generated usingstrum_macros
on your behalf. - Resolvable
Optional Substate Key - Resolvable
Substate Key - Variant
Names - A trait for retrieving the names of each variant in Enum. This trait can
be autoderived by
strum_macros
.
Functions§
Type Aliases§
- Buffer
Id - Field
Key - MapKey
- Sorted
Key - Substate
Handle - Validator
Index - An index of a specific validator within the current validator set.
To be exact: a
ValidatorIndex
equal tok
references thek-th
element returned by the iterator of theIndexMap<ComponentAddress, Validator>
in this epoch’s active validator set (which is expected to be sorted by stake, descending). This uniquely identifies the validator, while being shorter thanComponentAddress
(we do care about the constant factor of the space taken byLeaderProposalHistory
under prolonged liveness break scenarios).
Derive Macros§
- AsRef
Str - Converts enum variants to
&'static str
. - AsStatic
Str - Display
- Converts enum variants to strings.
- Enum
Count - Add a constant
usize
equal to the number of variants. - Enum
Discriminants - Generate a new type with only the discriminant names.
- Enum
Iter - Creates a new type that iterates of the variants of an enum.
- Enum
Message - Add a verbose message to an enum variant.
- Enum
Property - Add custom properties to enum variants.
- Enum
String - Converts strings to enum variants based on their name.
- Enum
Variant Names - Implements
Strum::VariantNames
which adds an associated constantVARIANTS
which is an array of discriminant names. - From
Repr - Add a function to enum that allows accessing variants by its discriminant
- Into
Static Str - Implements
From<MyEnum> for &'static str
on an enum. - ToString
- implements
std::string::ToString
on en enum