pub trait MsaLookup {
type AccountId;
// Required methods
fn get_msa_id(key: &Self::AccountId) -> Option<MessageSourceId>;
fn get_max_msa_id() -> MessageSourceId;
}Expand description
A behavior that allows looking up an MSA id
Required Associated Types§
Required Methods§
Sourcefn get_msa_id(key: &Self::AccountId) -> Option<MessageSourceId>
fn get_msa_id(key: &Self::AccountId) -> Option<MessageSourceId>
Gets the MSA Id associated with this AccountId if any
Sourcefn get_max_msa_id() -> MessageSourceId
fn get_max_msa_id() -> MessageSourceId
Gets the max MSA ID from the pallet
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.