pub type MetadataInit = KeyValueStoreInit<String, MetadataValue>;

Aliased Type§

struct MetadataInit {
    pub data: IndexMap<String, KeyValueStoreInitEntry<GenericMetadataValue<UncheckedUrl, UncheckedOrigin>>>,
}

Fields§

§data: IndexMap<String, KeyValueStoreInitEntry<GenericMetadataValue<UncheckedUrl, UncheckedOrigin>>>

Implementations§

source§

impl MetadataInit

source

pub fn set_metadata<S: ToString, V: ToMetadataEntry>( &mut self, key: S, value: V )

source

pub fn set_and_lock_metadata<S: ToString, V: ToMetadataEntry>( &mut self, key: S, value: V )

Trait Implementations§

source§

impl From<BTreeMap<String, GenericMetadataValue<UncheckedUrl, UncheckedOrigin>>> for MetadataInit

source§

fn from(data: BTreeMap<String, MetadataValue>) -> Self

Converts to this type from the input type.