pub trait MsaLookup {
type AccountId;
// Required method
fn get_msa_id(key: &Self::AccountId) -> Option<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
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.