carbon-mpl-token-metadata-decoder 0.5.1

MPL Token Metadata Decoder
Documentation
use {
    super::*,
    carbon_core::{borsh, CarbonDeserialize},
    std::hash::{Hash, Hasher},
};

#[derive(CarbonDeserialize, Debug, serde::Serialize, serde::Deserialize, PartialEq, Eq, Clone)]
pub struct Payload {
    pub map: std::collections::HashMap<String, PayloadType>,
}

impl Hash for Payload {
    fn hash<H: Hasher>(&self, state: &mut H) {
        for (key, value) in &self.map {
            key.hash(state);
            value.hash(state);
        }
    }
}