git.delta.rocks / unique-network / refs/commits / 3903c8aaf16e

difftreelog

source

primitives/rmrk-traits/src/property.rs639 Bsourcehistory
1use codec::{Decode, Encode};2use scale_info::TypeInfo;34#[cfg(feature = "std")]5use serde::Serialize;67#[cfg(feature = "std")]8use crate::serialize;910#[cfg_attr(feature = "std", derive(Serialize))]11#[derive(Encode, Decode, PartialEq, TypeInfo)]12#[cfg_attr(13	feature = "std",14	serde(bound = r#"15			BoundedKey: AsRef<[u8]>,16			BoundedValue: AsRef<[u8]>17		"#)18)]19pub struct PropertyInfo<BoundedKey, BoundedValue> {20	/// Key of the property21	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]22	pub key: BoundedKey,2324	/// Value of the property25	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]26	pub value: BoundedValue,27}