git.delta.rocks / unique-network / refs/commits / 6a7d5b108992

difftreelog

source

primitives/rmrk-traits/src/property.rs819 Bsourcehistory
1// Copyright (C) 2021-2022 RMRK2// This file is part of rmrk-substrate.3// License: Apache 2.0 modified by RMRK, see https://github.com/rmrk-team/rmrk-substrate/blob/main/LICENSE45use codec::{Decode, Encode};6use scale_info::TypeInfo;78#[cfg(feature = "std")]9use serde::Serialize;1011#[cfg(feature = "std")]12use crate::serialize;1314#[cfg_attr(feature = "std", derive(Serialize))]15#[derive(Encode, Decode, PartialEq, TypeInfo)]16#[cfg_attr(17	feature = "std",18	serde(bound = r#"19			BoundedKey: AsRef<[u8]>,20			BoundedValue: AsRef<[u8]>21		"#)22)]23pub struct PropertyInfo<BoundedKey, BoundedValue> {24	/// Key of the property25	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]26	pub key: BoundedKey,2728	/// Value of the property29	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]30	pub value: BoundedValue,31}