referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_identity::pallet::UsernameInfoOf

source ·
pub type UsernameInfoOf<T: Config> = StorageMap<_GeneratedPrefixForStorageUsernameInfoOf<T>, Blake2_128Concat, BoundedVec<u8, <T as Config>::MaxUsernameLength>, UsernameInformation<T::AccountId, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>, OptionQuery>;
Expand description

Reverse lookup from username to the AccountId that has registered it and the provider of the username. The owner value should be a key in the UsernameOf map, but it may not if the user has cleared their username or it has been removed.

Multiple usernames may map to the same AccountId, but UsernameOf will only map to one primary username.

Storage type is [StorageMap] with key type Username < T > and value type UsernameInformation < T :: AccountId, BalanceOf < T > >.

Aliased Type§

struct UsernameInfoOf<T: Config>(/* private fields */);