pub trait FieldContentSource<Payload: FieldPayload>: Sized {
    // Required method
    fn into_content(self) -> Payload::Content;

    // Provided methods
    fn into_payload(self) -> Payload { ... }
    fn into_locked_substate(self) -> FieldSubstate<Payload> { ... }
    fn into_unlocked_substate(self) -> FieldSubstate<Payload> { ... }
}
Expand description

This trait is intended to be implemented by types which embody the content of a particular field payload.

Note:

  • Multiple types might be mappable into the payload, and so implement this trait
  • This trait is only one way - from value into content
  • This trait uses a generic, because the same type might be usable as a payload for multiple substates

Required Methods§

source

fn into_content(self) -> Payload::Content

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FieldContentSource<RoleAssignmentOwnerFieldPayload> for VersionedRoleAssignmentOwner

source§

impl FieldContentSource<RoleAssignmentOwnerFieldPayload> for RoleAssignmentOwner

source§

impl FieldContentSource<ComponentRoyaltyAccumulatorFieldPayload> for VersionedComponentRoyaltyAccumulator

source§

impl FieldContentSource<ComponentRoyaltyAccumulatorFieldPayload> for ComponentRoyaltyAccumulator

source§

impl FieldContentSource<AccessControllerStateFieldPayload> for VersionedAccessControllerState

source§

impl FieldContentSource<AccessControllerStateFieldPayload> for AccessControllerState

source§

impl FieldContentSource<AccountDepositRuleFieldPayload> for VersionedAccountDepositRule

source§

impl FieldContentSource<AccountDepositRuleFieldPayload> for AccountDepositRule

source§

impl FieldContentSource<ConsensusManagerConfigurationFieldPayload> for VersionedConsensusManagerConfiguration

source§

impl FieldContentSource<ConsensusManagerConfigurationFieldPayload> for ConsensusManagerConfiguration

source§

impl FieldContentSource<ConsensusManagerCurrentProposalStatisticFieldPayload> for VersionedConsensusManagerCurrentProposalStatistic

source§

impl FieldContentSource<ConsensusManagerCurrentProposalStatisticFieldPayload> for ConsensusManagerCurrentProposalStatistic

source§

impl FieldContentSource<ConsensusManagerCurrentValidatorSetFieldPayload> for VersionedConsensusManagerCurrentValidatorSet

source§

impl FieldContentSource<ConsensusManagerCurrentValidatorSetFieldPayload> for ConsensusManagerCurrentValidatorSet

source§

impl FieldContentSource<ConsensusManagerProposerMilliTimestampFieldPayload> for VersionedConsensusManagerProposerMilliTimestamp

source§

impl FieldContentSource<ConsensusManagerProposerMilliTimestampFieldPayload> for ConsensusManagerProposerMilliTimestamp

source§

impl FieldContentSource<ConsensusManagerProposerMinuteTimestampFieldPayload> for VersionedConsensusManagerProposerMinuteTimestamp

source§

impl FieldContentSource<ConsensusManagerProposerMinuteTimestampFieldPayload> for ConsensusManagerProposerMinuteTimestamp

source§

impl FieldContentSource<ConsensusManagerStateFieldPayload> for VersionedConsensusManagerState

source§

impl FieldContentSource<ConsensusManagerStateFieldPayload> for ConsensusManagerState

source§

impl FieldContentSource<ConsensusManagerValidatorRewardsFieldPayload> for VersionedConsensusManagerValidatorRewards

source§

impl FieldContentSource<ConsensusManagerValidatorRewardsFieldPayload> for ConsensusManagerValidatorRewards

source§

impl FieldContentSource<ValidatorProtocolUpdateReadinessSignalFieldPayload> for VersionedValidatorProtocolUpdateReadinessSignal

source§

impl FieldContentSource<ValidatorProtocolUpdateReadinessSignalFieldPayload> for ValidatorProtocolUpdateReadinessSignal

source§

impl FieldContentSource<ValidatorStateFieldPayload> for VersionedValidatorState

source§

impl FieldContentSource<ValidatorStateFieldPayload> for ValidatorState

source§

impl FieldContentSource<PackageRoyaltyAccumulatorFieldPayload> for VersionedPackageRoyaltyAccumulator

source§

impl FieldContentSource<PackageRoyaltyAccumulatorFieldPayload> for PackageRoyaltyAccumulator

source§

impl FieldContentSource<MultiResourcePoolStateFieldPayload> for VersionedMultiResourcePoolState

source§

impl FieldContentSource<MultiResourcePoolStateFieldPayload> for MultiResourcePoolState

source§

impl FieldContentSource<OneResourcePoolStateFieldPayload> for VersionedOneResourcePoolState

source§

impl FieldContentSource<OneResourcePoolStateFieldPayload> for OneResourcePoolState

source§

impl FieldContentSource<TwoResourcePoolStateFieldPayload> for VersionedTwoResourcePoolState

source§

impl FieldContentSource<TwoResourcePoolStateFieldPayload> for TwoResourcePoolState

source§

impl FieldContentSource<FungibleResourceManagerDivisibilityFieldPayload> for VersionedFungibleResourceManagerDivisibility

source§

impl FieldContentSource<FungibleResourceManagerDivisibilityFieldPayload> for FungibleResourceManagerDivisibility

source§

impl FieldContentSource<FungibleResourceManagerTotalSupplyFieldPayload> for VersionedFungibleResourceManagerTotalSupply

source§

impl FieldContentSource<FungibleResourceManagerTotalSupplyFieldPayload> for FungibleResourceManagerTotalSupply

source§

impl FieldContentSource<FungibleVaultBalanceFieldPayload> for VersionedFungibleVaultBalance

source§

impl FieldContentSource<FungibleVaultBalanceFieldPayload> for FungibleVaultBalance

source§

impl FieldContentSource<FungibleVaultFreezeStatusFieldPayload> for VersionedFungibleVaultFreezeStatus

source§

impl FieldContentSource<FungibleVaultFreezeStatusFieldPayload> for FungibleVaultFreezeStatus

source§

impl FieldContentSource<FungibleVaultLockedBalanceFieldPayload> for VersionedFungibleVaultLockedBalance

source§

impl FieldContentSource<FungibleVaultLockedBalanceFieldPayload> for FungibleVaultLockedBalance

source§

impl FieldContentSource<NonFungibleResourceManagerIdTypeFieldPayload> for VersionedNonFungibleResourceManagerIdType

source§

impl FieldContentSource<NonFungibleResourceManagerIdTypeFieldPayload> for NonFungibleResourceManagerIdType

source§

impl FieldContentSource<NonFungibleResourceManagerMutableFieldsFieldPayload> for VersionedNonFungibleResourceManagerMutableFields

source§

impl FieldContentSource<NonFungibleResourceManagerMutableFieldsFieldPayload> for NonFungibleResourceManagerMutableFields

source§

impl FieldContentSource<NonFungibleResourceManagerTotalSupplyFieldPayload> for VersionedNonFungibleResourceManagerTotalSupply

source§

impl FieldContentSource<NonFungibleResourceManagerTotalSupplyFieldPayload> for NonFungibleResourceManagerTotalSupply

source§

impl FieldContentSource<NonFungibleVaultBalanceFieldPayload> for VersionedNonFungibleVaultBalance

source§

impl FieldContentSource<NonFungibleVaultBalanceFieldPayload> for NonFungibleVaultBalance

source§

impl FieldContentSource<NonFungibleVaultFreezeStatusFieldPayload> for VersionedNonFungibleVaultFreezeStatus

source§

impl FieldContentSource<NonFungibleVaultFreezeStatusFieldPayload> for NonFungibleVaultFreezeStatus

source§

impl FieldContentSource<NonFungibleVaultLockedResourceFieldPayload> for VersionedNonFungibleVaultLockedResource

source§

impl FieldContentSource<NonFungibleVaultLockedResourceFieldPayload> for NonFungibleVaultLockedResource