Skip to main content

BudgetRecipientList

Trait BudgetRecipientList 

Source
pub trait BudgetRecipientList<AccountId> {
    // Required method
    fn recipients() -> Vec<(BudgetKey, AccountId)>;
}
Expand description

Aggregates multiple BudgetRecipients into a list.

Implemented for tuples of BudgetRecipient types, allowing runtime configuration like:

type BudgetRecipients = (StakerRewardRecipient, ValidatorIncentiveRecipient);

Required Methods§

Source

fn recipients() -> Vec<(BudgetKey, AccountId)>

Collect all registered recipients as (key, account) pairs.

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.

Implementations on Foreign Types§

Source§

impl<AccountId> BudgetRecipientList<AccountId> for ()

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0,)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>, TupleElement5: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>, TupleElement5: BudgetRecipient<AccountId>, TupleElement6: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>, TupleElement5: BudgetRecipient<AccountId>, TupleElement6: BudgetRecipient<AccountId>, TupleElement7: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>, TupleElement5: BudgetRecipient<AccountId>, TupleElement6: BudgetRecipient<AccountId>, TupleElement7: BudgetRecipient<AccountId>, TupleElement8: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Source§

impl<AccountId, TupleElement0: BudgetRecipient<AccountId>, TupleElement1: BudgetRecipient<AccountId>, TupleElement2: BudgetRecipient<AccountId>, TupleElement3: BudgetRecipient<AccountId>, TupleElement4: BudgetRecipient<AccountId>, TupleElement5: BudgetRecipient<AccountId>, TupleElement6: BudgetRecipient<AccountId>, TupleElement7: BudgetRecipient<AccountId>, TupleElement8: BudgetRecipient<AccountId>, TupleElement9: BudgetRecipient<AccountId>> BudgetRecipientList<AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7, TupleElement8, TupleElement9)

Source§

fn recipients() -> Vec<(BudgetKey, AccountId)>

Implementors§