Modules
- Documentation for Additional Attributes
Structs
- Core object state, persisted in
TypeInfoSubstate
. - Address to a global component
- Royalty rules
- A type-safe consensus epoch number.
- Identifies a specific event schema emitter by some emitter RENode.
- An identifier for a type under a given node’s schema context in the Radix network.
- Address to a global entity
- Address to a local entity
- The unique identifier of a (stored) node.
- Address to a global package
- The unique identifier of a node module.
- Address to a global resource
- A type-safe consensus round number within a single epoch.
- Represents a particular schema under a package
- An identifier for a type in the context of a schema.
Enums
- An enum which represents the different addressable entities.
- A reference to the type to substitute with for the case of generics.
- Represents the level of a log message.
- Royalty rules
- Royalty rules
- The
ParseError
enum is a collection of all the possible reasons an enum can fail to parse from a string. - The unique identifier of a substate within a node module.
Constants
- Used only with TRANSACTION_TRACKER Node for boot loading
Traits
- AsStaticRefDeprecatedA cheap reference-to-reference conversion. Used to convert a value to a reference value with
'static
lifetime within generic code. - A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros
. - Associates additional pieces of information with an Enum. This can be autoimplemented by deriving
EnumMessage
and annotating your variants with#[strum(message="...")]
. 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.- This trait designates that an
Enum
can be iterated over. It can be auto generated usingstrum_macros
on your behalf. - Represents the data structure of a non-fungible.
- A trait for retrieving the names of each variant in Enum. This trait can be autoderived by
strum_macros
.
Functions
Type Definitions
- 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
- Converts enum variants to
&'static str
. - Converts enum variants to strings.
- Add a constant
usize
equal to the number of variants. - Generate a new type with only the discriminant names.
- Creates a new type that iterates of the variants of an enum.
- Add a verbose message to an enum variant.
- Add custom properties to enum variants.
- Converts strings to enum variants based on their name.
- Implements
Strum::VariantNames
which adds an associated constantVARIANTS
which is an array of discriminant names. - Add a function to enum that allows accessing variants by its discriminant
- Implements
From<MyEnum> for &'static str
on an enum. - implements
std::string::ToString
on en enum