Struct gamepower_wallet::Claim[][src]

pub struct Claim<ClassIdOf, TokenIdOf, AccountId> {
    pub receiver: AccountId,
    pub asset: (ClassIdOf, TokenIdOf),
}

Claim data

Fields

receiver: AccountId

account this claim is meant for

asset: (ClassIdOf, TokenIdOf)

Asset - (class_id, token_id)

Trait Implementations

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

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

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

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

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

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

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

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

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

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

impl<T: Config> StorageDoubleMap<<T as Config>::AccountId, u128, Claim<<T as Config>::ClassId, <T as Config>::TokenId, <T as Config>::AccountId>> for OpenClaims<T>[src]

type Query = Option<ClaimOf<T>>

The type that get/take returns.

type Hasher1 = Blake2_128Concat

Hasher for the first key.

type Hasher2 = Twox64Concat

Hasher for the second key.

impl<T: Config> StoragePrefixedMap<Claim<<T as Config>::ClassId, <T as Config>::TokenId, <T as Config>::AccountId>> for OpenClaims<T>[src]

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

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

Auto Trait Implementations

impl<ClassIdOf, TokenIdOf, AccountId> RefUnwindSafe for Claim<ClassIdOf, TokenIdOf, AccountId> where
    AccountId: RefUnwindSafe,
    ClassIdOf: RefUnwindSafe,
    TokenIdOf: RefUnwindSafe

impl<ClassIdOf, TokenIdOf, AccountId> Send for Claim<ClassIdOf, TokenIdOf, AccountId> where
    AccountId: Send,
    ClassIdOf: Send,
    TokenIdOf: Send

impl<ClassIdOf, TokenIdOf, AccountId> Sync for Claim<ClassIdOf, TokenIdOf, AccountId> where
    AccountId: Sync,
    ClassIdOf: Sync,
    TokenIdOf: Sync

impl<ClassIdOf, TokenIdOf, AccountId> Unpin for Claim<ClassIdOf, TokenIdOf, AccountId> where
    AccountId: Unpin,
    ClassIdOf: Unpin,
    TokenIdOf: Unpin

impl<ClassIdOf, TokenIdOf, AccountId> UnwindSafe for Claim<ClassIdOf, TokenIdOf, AccountId> where
    AccountId: 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]