Skip to content

Collection doesn't implement plugin_list or plugin_header #40

@joefitter

Description

@joefitter

mpl-core = "0.3.0"

Assets can be deserialised, Collections can not. I am only able to deserialise into a BaseCollection which doesn't contain the plugin_list so I am unable to see plugins applied to the collection in my program.

#[derive(Debug)]
pub struct Asset {
pub base: BaseAssetV1,
pub plugin_list: PluginsList,
pub plugin_header: Option<PluginHeaderV1>,
}
#[derive(Debug)]
pub struct Collection {
pub base: BaseCollectionV1,
pub plugin_list: PluginsList,
pub plugin_header: PluginHeaderV1,
}

// works
let asset_account = Asset::try_from(asset)?;
// does not work - try_from not implemented
let collection_account = Collection::try_from(collection)?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions