Struct gamepower_wallet::Listing[][src]

pub struct Listing<ClassIdOf, TokenIdOf, AccountId, Balance> {
    pub id: ListingId,
    pub seller: AccountId,
    pub asset: (ClassIdOf, TokenIdOf),
    pub price: Balance,
}

Listing data

Fields

id: ListingId

Listing Id

seller: AccountId

Seller of the listing

asset: (ClassIdOf, TokenIdOf)

Asset - (class_id, token_id)

price: Balance

Price of the asset listed

Trait Implementations

impl<ClassIdOf: Clone, TokenIdOf: Clone, AccountId: Clone, Balance: Clone> Clone for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Debug for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    ClassIdOf: Debug,
    TokenIdOf: Debug,
    AccountId: Debug,
    Balance: Debug
[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Decode for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Decode,
    AccountId: Decode,
    ClassIdOf: Decode,
    TokenIdOf: Decode,
    (ClassIdOf, TokenIdOf): Decode,
    Balance: Decode,
    Balance: Decode
[src]

impl<ClassIdOf: Default, TokenIdOf: Default, AccountId: Default, Balance: Default> Default for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

impl<'de, ClassIdOf, TokenIdOf, AccountId, Balance> Deserialize<'de> for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    ClassIdOf: Deserialize<'de>,
    TokenIdOf: Deserialize<'de>,
    AccountId: Deserialize<'de>,
    Balance: Deserialize<'de>, 
[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Encode for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Encode,
    AccountId: Encode,
    ClassIdOf: Encode,
    TokenIdOf: Encode,
    (ClassIdOf, TokenIdOf): Encode,
    Balance: Encode,
    Balance: Encode
[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> EncodeLike<Listing<ClassIdOf, TokenIdOf, AccountId, Balance>> for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Encode,
    AccountId: Encode,
    ClassIdOf: Encode,
    TokenIdOf: Encode,
    (ClassIdOf, TokenIdOf): Encode,
    Balance: Encode,
    Balance: Encode
[src]

impl<ClassIdOf: Eq, TokenIdOf: Eq, AccountId: Eq, Balance: Eq> Eq for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

impl<ClassIdOf: PartialEq, TokenIdOf: PartialEq, AccountId: PartialEq, Balance: PartialEq> PartialEq<Listing<ClassIdOf, TokenIdOf, AccountId, Balance>> for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Serialize for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    ClassIdOf: Serialize,
    TokenIdOf: Serialize,
    AccountId: Serialize,
    Balance: Serialize
[src]

impl<T: Config> StorageMap<u64, Listing<<T as Config>::ClassId, <T as Config>::TokenId, <T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>> for Listings<T>[src]

type Query = Option<ListingOf<T>>

The type that get/take returns.

type Hasher = Twox64Concat

Hasher. Used for generating final key.

impl<T: Config> StoragePrefixedMap<Listing<<T as Config>::ClassId, <T as Config>::TokenId, <T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>> for Listings<T>[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> StructuralEq for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

impl<ClassIdOf, TokenIdOf, AccountId, Balance> StructuralPartialEq for Listing<ClassIdOf, TokenIdOf, AccountId, Balance>[src]

Auto Trait Implementations

impl<ClassIdOf, TokenIdOf, AccountId, Balance> RefUnwindSafe for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: RefUnwindSafe,
    Balance: RefUnwindSafe,
    ClassIdOf: RefUnwindSafe,
    TokenIdOf: RefUnwindSafe

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Send for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Send,
    Balance: Send,
    ClassIdOf: Send,
    TokenIdOf: Send

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Sync for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Sync,
    Balance: Sync,
    ClassIdOf: Sync,
    TokenIdOf: Sync

impl<ClassIdOf, TokenIdOf, AccountId, Balance> Unpin for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: Unpin,
    Balance: Unpin,
    ClassIdOf: Unpin,
    TokenIdOf: Unpin

impl<ClassIdOf, TokenIdOf, AccountId, Balance> UnwindSafe for Listing<ClassIdOf, TokenIdOf, AccountId, Balance> where
    AccountId: UnwindSafe,
    Balance: UnwindSafe,
    ClassIdOf: UnwindSafe,
    TokenIdOf: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Clear for T where
    T: Default + Eq + PartialEq<T>, 
[src]

impl<S> Codec for S where
    S: Decode + Encode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Hashable for T where
    T: Codec
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> MaybeSerialize for T where
    T: Serialize
[src]

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize
[src]

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]