pub trait IdentityInformationProvider: Encode + Decode + MaxEncodedLen + Clone + Debug + Eq + PartialEq + TypeInfo + Default {
    type FieldsIdentifier: Member + Encode + Decode + MaxEncodedLen + TypeInfo + Default;

    // Required methods
    fn has_identity(&self, fields: Self::FieldsIdentifier) -> bool;
    fn create_identity_info() -> Self;
    fn all_fields() -> Self::FieldsIdentifier;
}
Expand description

Information concerning the identity of the controller of an account.

Required Associated Types§

source

type FieldsIdentifier: Member + Encode + Decode + MaxEncodedLen + TypeInfo + Default

Type capable of holding information on which identity fields are set.

Required Methods§

source

fn has_identity(&self, fields: Self::FieldsIdentifier) -> bool

Check if an identity registered information for some given fields.

source

fn create_identity_info() -> Self

Create a basic instance of the identity information.

source

fn all_fields() -> Self::FieldsIdentifier

The identity information representation for all identity fields enabled.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<FieldLimit: Get<u32> + 'static> IdentityInformationProvider for IdentityInfo<FieldLimit>