Skip to main content

DelegateFee

Trait DelegateFee 

Source
pub trait DelegateFee<Call, Acc> {
    // Required method
    fn delegate_fee(call: &Call, who: &Acc) -> Option<Acc>;
}
Expand description

Trait that is used to “delegate fee” by optionally changing the payer target (account id) for the applied call.

Required Methods§

Source

fn delegate_fee(call: &Call, who: &Acc) -> Option<Acc>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Call, Acc> DelegateFee<Call, Acc> for ()

Source§

fn delegate_fee(_call: &Call, _who: &Acc) -> Option<Acc>

Implementors§