[][src]Struct srml_contract::AccountInfoOf

pub struct AccountInfoOf<T: Trait>(_);

The code associated with a given account.

Trait Implementations

impl<T: Trait> StorageMap<<T as Trait>::AccountId, AccountInfo> for AccountInfoOf<T>[src]

type Query = Option<AccountInfo>

The type that get/take returns.

type Hasher = Blake2_256

fn prefix() -> &'static [u8][src]

Get the prefix key in storage.

fn key_for(x: &T::AccountId) -> Vec<u8>[src]

Get the storage key used to fetch a value corresponding to a specific key.

fn get<S: HashedStorage<Blake2_256>>(
    key: &T::AccountId,
    storage: &S
) -> Self::Query
[src]

Load the value associated with the given key from the map.

fn take<S: HashedStorage<Blake2_256>>(
    key: &T::AccountId,
    storage: &S
) -> Self::Query
[src]

Take the value, reading and removing it.

fn mutate<R, F: FnOnce(&mut Self::Query) -> R, S: HashedStorage<Blake2_256>>(
    key: &T::AccountId,
    f: F,
    storage: &S
) -> R
[src]

Mutate the value under a key

Auto Trait Implementations

impl<T> Sync for AccountInfoOf<T> where
    T: Sync

impl<T> Send for AccountInfoOf<T> where
    T: Send

impl<T> Unpin for AccountInfoOf<T> where
    T: Unpin

impl<T> UnwindSafe for AccountInfoOf<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for AccountInfoOf<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

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

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<K, V, U> StorageMap<K, V> for U where
    K: Codec,
    U: StorageMap<K, V>,
    V: Codec
[src]

type Query = <U as StorageMap<K, V>>::Query

The type that get/take return.