pub trait MsaKeyProvider {
type AccountId;
// Required method
fn key_eligible_for_subsidized_addition(
old_key: Self::AccountId,
new_key: Self::AccountId,
msa_id: MessageSourceId,
) -> bool;
}
Expand description
A trait that allows checking whether adding a key may be subsidized
Required Associated Types§
Required Methods§
Sourcefn key_eligible_for_subsidized_addition(
old_key: Self::AccountId,
new_key: Self::AccountId,
msa_id: MessageSourceId,
) -> bool
fn key_eligible_for_subsidized_addition( old_key: Self::AccountId, new_key: Self::AccountId, msa_id: MessageSourceId, ) -> bool
Returns whether adding new_key
to msa_id
may be subsidized
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.