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

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

This trait is intended to be implemented by types which embody the content of a particular key value entry 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 KeyValueEntryContentSource<MetadataEntryEntryPayload> for VersionedMetadataEntry

source§

impl KeyValueEntryContentSource<MetadataEntryEntryPayload> for MetadataEntry

source§

impl KeyValueEntryContentSource<RoleAssignmentAccessRuleEntryPayload> for VersionedRoleAssignmentAccessRule

source§

impl KeyValueEntryContentSource<RoleAssignmentAccessRuleEntryPayload> for RoleAssignmentAccessRule

source§

impl KeyValueEntryContentSource<ComponentRoyaltyMethodAmountEntryPayload> for VersionedComponentRoyaltyMethodAmount

source§

impl KeyValueEntryContentSource<ComponentRoyaltyMethodAmountEntryPayload> for ComponentRoyaltyMethodAmount

source§

impl KeyValueEntryContentSource<AccountAuthorizedDepositorEntryPayload> for VersionedAccountAuthorizedDepositor

source§

impl KeyValueEntryContentSource<AccountAuthorizedDepositorEntryPayload> for AccountAuthorizedDepositor

source§

impl KeyValueEntryContentSource<AccountResourcePreferenceEntryPayload> for VersionedAccountResourcePreference

source§

impl KeyValueEntryContentSource<AccountResourcePreferenceEntryPayload> for AccountResourcePreference

source§

impl KeyValueEntryContentSource<AccountResourceVaultEntryPayload> for VersionedAccountResourceVault

source§

impl KeyValueEntryContentSource<AccountResourceVaultEntryPayload> for AccountResourceVault

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionAuthConfigEntryPayload> for VersionedPackageBlueprintVersionAuthConfig

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionAuthConfigEntryPayload> for PackageBlueprintVersionAuthConfig

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionDefinitionEntryPayload> for VersionedPackageBlueprintVersionDefinition

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionDefinitionEntryPayload> for PackageBlueprintVersionDefinition

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionDependenciesEntryPayload> for VersionedPackageBlueprintVersionDependencies

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionDependenciesEntryPayload> for PackageBlueprintVersionDependencies

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionRoyaltyConfigEntryPayload> for VersionedPackageBlueprintVersionRoyaltyConfig

source§

impl KeyValueEntryContentSource<PackageBlueprintVersionRoyaltyConfigEntryPayload> for PackageBlueprintVersionRoyaltyConfig

source§

impl KeyValueEntryContentSource<PackageCodeInstrumentedCodeEntryPayload> for VersionedPackageCodeInstrumentedCode

source§

impl KeyValueEntryContentSource<PackageCodeInstrumentedCodeEntryPayload> for PackageCodeInstrumentedCode

source§

impl KeyValueEntryContentSource<PackageCodeOriginalCodeEntryPayload> for VersionedPackageCodeOriginalCode

source§

impl KeyValueEntryContentSource<PackageCodeOriginalCodeEntryPayload> for PackageCodeOriginalCode

source§

impl KeyValueEntryContentSource<PackageCodeVmTypeEntryPayload> for VersionedPackageCodeVmType

source§

impl KeyValueEntryContentSource<PackageCodeVmTypeEntryPayload> for PackageCodeVmType

source§

impl KeyValueEntryContentSource<PackageSchemaEntryPayload> for VersionedScryptoSchema

source§

impl<Data: NonFungibleResourceManagerDataContentMarker> KeyValueEntryContentSource<NonFungibleResourceManagerDataEntryPayload<Data>> for Data