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§
sourcetype FieldsIdentifier: Member + Encode + Decode + MaxEncodedLen + TypeInfo + Default
type FieldsIdentifier: Member + Encode + Decode + MaxEncodedLen + TypeInfo + Default
Type capable of holding information on which identity fields are set.
Required Methods§
sourcefn has_identity(&self, fields: Self::FieldsIdentifier) -> bool
fn has_identity(&self, fields: Self::FieldsIdentifier) -> bool
Check if an identity registered information for some given fields
.
sourcefn create_identity_info() -> Self
fn create_identity_info() -> Self
Create a basic instance of the identity information.
sourcefn all_fields() -> Self::FieldsIdentifier
fn all_fields() -> Self::FieldsIdentifier
The identity information representation for all identity fields enabled.
Object Safety§
This trait is not object safe.