pub trait GetSalary<Rank, AccountId, Balance> {
// Required method
fn get_salary(rank: Rank, who: &AccountId) -> Balance;
}
Expand description
Retrieve the salary for a member of a particular rank.
Required Methods§
Sourcefn get_salary(rank: Rank, who: &AccountId) -> Balance
fn get_salary(rank: Rank, who: &AccountId) -> Balance
Retrieve the salary for a given rank. The account ID is also supplied in case this changes things.
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.