pub trait RankedMembers {
type AccountId;
type Rank: AtLeast16BitUnsigned;
// Required methods
fn min_rank() -> Self::Rank;
fn rank_of(who: &Self::AccountId) -> Option<Self::Rank>;
fn induct(who: &Self::AccountId) -> DispatchResult;
fn promote(who: &Self::AccountId) -> DispatchResult;
fn demote(who: &Self::AccountId) -> DispatchResult;
}Expand description
Ranked membership data structure.
Required Associated Types§
Required Methods§
Sourcefn rank_of(who: &Self::AccountId) -> Option<Self::Rank>
fn rank_of(who: &Self::AccountId) -> Option<Self::Rank>
Return the rank of the given ID, or None if they are not a member.
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.