common_primitives::msa

Trait MsaLookup

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

Source

type AccountId

The association between key and MSA

Required Methods§

Source

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.

Implementors§