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

difftreelog

source

primitives/rmrk-traits/src/collection.rs789 Bsourcehistory
1use codec::{Decode, Encode, MaxEncodedLen};2use scale_info::TypeInfo;34#[cfg(feature = "std")]5use serde::Serialize;67#[cfg(feature = "std")]8use crate::serialize;910#[cfg_attr(feature = "std", derive(PartialEq, Eq, Serialize))]11#[derive(Encode, Decode, Debug, TypeInfo, MaxEncodedLen)]12#[cfg_attr(13	feature = "std",14	serde(bound = r#"15			AccountId: Serialize,16			BoundedString: AsRef<[u8]>,17			BoundedSymbol: AsRef<[u8]>18		"#)19)]20pub struct CollectionInfo<BoundedString, BoundedSymbol, AccountId> {21	/// Current bidder and bid price.22	pub issuer: AccountId,2324	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]25	pub metadata: BoundedString,26	pub max: Option<u32>,2728	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]29	pub symbol: BoundedSymbol,30	pub nfts_count: u32,31}