git.delta.rocks / unique-network / refs/commits / d16d7f8bc42e

difftreelog

source

primitives/rmrk-traits/src/collection.rs969 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, MaxEncodedLen};6use scale_info::TypeInfo;78#[cfg(feature = "std")]9use serde::Serialize;1011#[cfg(feature = "std")]12use crate::serialize;1314#[cfg_attr(feature = "std", derive(PartialEq, Eq, Serialize))]15#[derive(Encode, Decode, Debug, TypeInfo, MaxEncodedLen)]16#[cfg_attr(17	feature = "std",18	serde(bound = r#"19			AccountId: Serialize,20			BoundedString: AsRef<[u8]>,21			BoundedSymbol: AsRef<[u8]>22		"#)23)]24pub struct CollectionInfo<BoundedString, BoundedSymbol, AccountId> {25	/// Current bidder and bid price.26	pub issuer: AccountId,2728	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]29	pub metadata: BoundedString,30	pub max: Option<u32>,3132	#[cfg_attr(feature = "std", serde(with = "serialize::vec"))]33	pub symbol: BoundedSymbol,34	pub nfts_count: u32,35}