pub trait FieldPayload: Sized + AsRef<Self::Content> + AsMut<Self::Content> + From<Self::Content> {
    type Content: FieldContentSource<Self>;

    // Required method
    fn into_content(self) -> Self::Content;

    // Provided methods
    fn from_content(content: Self::Content) -> Self { ... }
    fn from_content_source<T: FieldContentSource<Self>>(content: T) -> Self { ... }
    fn into_locked_substate(self) -> FieldSubstate<Self> { ... }
    fn into_unlocked_substate(self) -> FieldSubstate<Self> { ... }
}
Expand description

This trait is intended to be implemented by an explicit new type for for the given { content: T } payload of a particular field.

Required Associated Types§

Required Methods§

source

fn into_content(self) -> Self::Content

Provided Methods§

source

fn from_content(content: Self::Content) -> Self

source

fn from_content_source<T: FieldContentSource<Self>>(content: T) -> Self

source

fn into_locked_substate(self) -> FieldSubstate<Self>

source

fn into_unlocked_substate(self) -> FieldSubstate<Self>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FieldPayload for RoleAssignmentOwnerFieldPayload

source§

impl FieldPayload for ComponentRoyaltyAccumulatorFieldPayload

source§

impl FieldPayload for AccessControllerStateFieldPayload

source§

impl FieldPayload for AccountDepositRuleFieldPayload

source§

impl FieldPayload for ConsensusManagerConfigurationFieldPayload

source§

impl FieldPayload for ConsensusManagerCurrentProposalStatisticFieldPayload

source§

impl FieldPayload for ConsensusManagerCurrentValidatorSetFieldPayload

source§

impl FieldPayload for ConsensusManagerProposerMilliTimestampFieldPayload

source§

impl FieldPayload for ConsensusManagerProposerMinuteTimestampFieldPayload

source§

impl FieldPayload for ConsensusManagerStateFieldPayload

source§

impl FieldPayload for ConsensusManagerValidatorRewardsFieldPayload

source§

impl FieldPayload for ValidatorProtocolUpdateReadinessSignalFieldPayload

source§

impl FieldPayload for ValidatorStateFieldPayload

source§

impl FieldPayload for PackageRoyaltyAccumulatorFieldPayload

source§

impl FieldPayload for MultiResourcePoolStateFieldPayload

source§

impl FieldPayload for OneResourcePoolStateFieldPayload

source§

impl FieldPayload for TwoResourcePoolStateFieldPayload

source§

impl FieldPayload for FungibleResourceManagerDivisibilityFieldPayload

source§

impl FieldPayload for FungibleResourceManagerTotalSupplyFieldPayload

source§

impl FieldPayload for FungibleVaultBalanceFieldPayload

source§

impl FieldPayload for FungibleVaultFreezeStatusFieldPayload

source§

impl FieldPayload for FungibleVaultLockedBalanceFieldPayload

source§

impl FieldPayload for NonFungibleResourceManagerIdTypeFieldPayload

source§

impl FieldPayload for NonFungibleResourceManagerMutableFieldsFieldPayload

source§

impl FieldPayload for NonFungibleResourceManagerTotalSupplyFieldPayload

source§

impl FieldPayload for NonFungibleVaultBalanceFieldPayload

source§

impl FieldPayload for NonFungibleVaultFreezeStatusFieldPayload

source§

impl FieldPayload for NonFungibleVaultLockedResourceFieldPayload