Struct gamepower_wallet::Order[][src]

pub struct Order<ListingOf, AccountId, BlockNumber> {
    pub listing: ListingOf,
    pub buyer: AccountId,
    pub block: BlockNumber,
}

Order data

Fields

listing: ListingOf

order listing

buyer: AccountId

order buyer

block: BlockNumber

genesis block

Trait Implementations

impl<ListingOf: Clone, AccountId: Clone, BlockNumber: Clone> Clone for Order<ListingOf, AccountId, BlockNumber>[src]

impl<ListingOf, AccountId, BlockNumber> Debug for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Debug,
    AccountId: Debug,
    BlockNumber: Debug
[src]

impl<ListingOf, AccountId, BlockNumber> Decode for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Decode,
    ListingOf: Decode,
    AccountId: Decode,
    AccountId: Decode,
    BlockNumber: Decode,
    BlockNumber: Decode
[src]

impl<ListingOf: Default, AccountId: Default, BlockNumber: Default> Default for Order<ListingOf, AccountId, BlockNumber>[src]

impl<'de, ListingOf, AccountId, BlockNumber> Deserialize<'de> for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Deserialize<'de>,
    AccountId: Deserialize<'de>,
    BlockNumber: Deserialize<'de>, 
[src]

impl<ListingOf, AccountId, BlockNumber> Encode for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Encode,
    ListingOf: Encode,
    AccountId: Encode,
    AccountId: Encode,
    BlockNumber: Encode,
    BlockNumber: Encode
[src]

impl<ListingOf, AccountId, BlockNumber> EncodeLike<Order<ListingOf, AccountId, BlockNumber>> for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Encode,
    ListingOf: Encode,
    AccountId: Encode,
    AccountId: Encode,
    BlockNumber: Encode,
    BlockNumber: Encode
[src]

impl<ListingOf: Eq, AccountId: Eq, BlockNumber: Eq> Eq for Order<ListingOf, AccountId, BlockNumber>[src]

impl<ListingOf: PartialEq, AccountId: PartialEq, BlockNumber: PartialEq> PartialEq<Order<ListingOf, AccountId, BlockNumber>> for Order<ListingOf, AccountId, BlockNumber>[src]

impl<ListingOf, AccountId, BlockNumber> Serialize for Order<ListingOf, AccountId, BlockNumber> where
    ListingOf: Serialize,
    AccountId: Serialize,
    BlockNumber: Serialize
[src]

impl<T: Config> StorageMap<(<T as Config>::ClassId, <T as Config>::TokenId), Order<Listing<<T as Config>::ClassId, <T as Config>::TokenId, <T as Config>::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>, <T as Config>::AccountId, <T as Config>::BlockNumber>> for OrderHistory<T>[src]

type Query = Option<OrderOf<T>>

The type that get/take returns.

type Hasher = Twox64Concat

Hasher. Used for generating final key.

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

impl<ListingOf, AccountId, BlockNumber> StructuralEq for Order<ListingOf, AccountId, BlockNumber>[src]

impl<ListingOf, AccountId, BlockNumber> StructuralPartialEq for Order<ListingOf, AccountId, BlockNumber>[src]

Auto Trait Implementations

impl<ListingOf, AccountId, BlockNumber> RefUnwindSafe for Order<ListingOf, AccountId, BlockNumber> where
    AccountId: RefUnwindSafe,
    BlockNumber: RefUnwindSafe,
    ListingOf: RefUnwindSafe

impl<ListingOf, AccountId, BlockNumber> Send for Order<ListingOf, AccountId, BlockNumber> where
    AccountId: Send,
    BlockNumber: Send,
    ListingOf: Send

impl<ListingOf, AccountId, BlockNumber> Sync for Order<ListingOf, AccountId, BlockNumber> where
    AccountId: Sync,
    BlockNumber: Sync,
    ListingOf: Sync

impl<ListingOf, AccountId, BlockNumber> Unpin for Order<ListingOf, AccountId, BlockNumber> where
    AccountId: Unpin,
    BlockNumber: Unpin,
    ListingOf: Unpin

impl<ListingOf, AccountId, BlockNumber> UnwindSafe for Order<ListingOf, AccountId, BlockNumber> where
    AccountId: UnwindSafe,
    BlockNumber: UnwindSafe,
    ListingOf: 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]