referrerpolicy=no-referrer-when-downgrade
pallet_identity

Trait IdentityInformationProvider

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§