pub trait KeyValueEntryPayload: Sized + AsRef<Self::Content> + AsMut<Self::Content> + From<Self::Content> {
    type Content: KeyValueEntryContentSource<Self>;

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

    // Provided methods
    fn from_content(inner_content: Self::Content) -> Self { ... }
    fn from_content_source<T>(content: T) -> Self
       where T: KeyValueEntryContentSource<Self> { ... }
    fn into_locked_substate(self) -> KeyValueEntrySubstate<Self> { ... }
    fn into_unlocked_substate(self) -> KeyValueEntrySubstate<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 key value collection.

Required Associated Types§

Required Methods§

source

fn into_content(self) -> Self::Content

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl KeyValueEntryPayload for AccountAuthorizedDepositorEntryPayload

source§

impl KeyValueEntryPayload for AccountResourcePreferenceEntryPayload

source§

impl KeyValueEntryPayload for AccountResourceVaultEntryPayload

source§

impl KeyValueEntryPayload for MetadataEntryEntryPayload

source§

impl KeyValueEntryPayload for RoleAssignmentAccessRuleEntryPayload

source§

impl KeyValueEntryPayload for ComponentRoyaltyMethodAmountEntryPayload

source§

impl KeyValueEntryPayload for PackageBlueprintVersionAuthConfigEntryPayload

source§

impl KeyValueEntryPayload for PackageBlueprintVersionDefinitionEntryPayload

source§

impl KeyValueEntryPayload for PackageBlueprintVersionDependenciesEntryPayload

source§

impl KeyValueEntryPayload for PackageBlueprintVersionRoyaltyConfigEntryPayload

source§

impl KeyValueEntryPayload for PackageCodeInstrumentedCodeEntryPayload

source§

impl KeyValueEntryPayload for PackageCodeOriginalCodeEntryPayload

source§

impl KeyValueEntryPayload for PackageCodeVmTypeEntryPayload

source§

impl KeyValueEntryPayload for PackageSchemaEntryPayload

source§

impl<Data> KeyValueEntryPayload for NonFungibleResourceManagerDataEntryPayload<Data>

§

type Content = Data