pub trait MetadataVal: ScryptoEncode + ScryptoDecode + ToMetadataEntry {
    const DISCRIMINATOR: u8;

    // Required methods
    fn to_metadata_value(
        self
    ) -> GenericMetadataValue<UncheckedUrl, UncheckedOrigin>;
    fn from_metadata_value(
        entry: GenericMetadataValue<UncheckedUrl, UncheckedOrigin>
    ) -> Result<Self, MetadataConversionError>;
}

Required Associated Constants§

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MetadataVal for bool

source§

impl MetadataVal for i32

source§

impl MetadataVal for i64

source§

impl MetadataVal for u8

source§

impl MetadataVal for u32

source§

impl MetadataVal for u64

Implementors§

source§

impl MetadataVal for NonFungibleLocalId

source§

impl MetadataVal for PublicKey

source§

impl MetadataVal for PublicKeyHash

source§

impl MetadataVal for Vec<NonFungibleLocalId>

source§

const DISCRIMINATOR: u8 = 139u8

source§

impl MetadataVal for Vec<PublicKey>

source§

const DISCRIMINATOR: u8 = 137u8

source§

impl MetadataVal for Vec<PublicKeyHash>

source§

const DISCRIMINATOR: u8 = 143u8

source§

impl MetadataVal for Vec<bool>

source§

const DISCRIMINATOR: u8 = 129u8

source§

impl MetadataVal for Vec<i32>

source§

const DISCRIMINATOR: u8 = 133u8

source§

impl MetadataVal for Vec<i64>

source§

const DISCRIMINATOR: u8 = 134u8

source§

impl MetadataVal for Vec<u8>

source§

const DISCRIMINATOR: u8 = 130u8

source§

impl MetadataVal for Vec<u32>

source§

const DISCRIMINATOR: u8 = 131u8

source§

impl MetadataVal for Vec<u64>

source§

const DISCRIMINATOR: u8 = 132u8

source§

impl MetadataVal for Vec<Decimal>

source§

const DISCRIMINATOR: u8 = 135u8

source§

impl MetadataVal for Vec<GlobalAddress>

source§

const DISCRIMINATOR: u8 = 136u8

source§

impl MetadataVal for Vec<Instant>

source§

const DISCRIMINATOR: u8 = 140u8

source§

impl MetadataVal for Vec<NonFungibleGlobalId>

source§

const DISCRIMINATOR: u8 = 138u8

source§

impl MetadataVal for Vec<String>

source§

const DISCRIMINATOR: u8 = 128u8

source§

impl MetadataVal for Vec<UncheckedOrigin>

source§

const DISCRIMINATOR: u8 = 142u8

source§

impl MetadataVal for Vec<UncheckedUrl>

source§

const DISCRIMINATOR: u8 = 141u8

source§

impl MetadataVal for Decimal

source§

impl MetadataVal for GlobalAddress

source§

impl MetadataVal for Instant

source§

impl MetadataVal for NonFungibleGlobalId

source§

impl MetadataVal for String

source§

impl MetadataVal for UncheckedOrigin

source§

impl MetadataVal for UncheckedUrl