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