pub trait CallSources<S, P> {
    // Required methods
    fn sender(&self) -> S;
    fn subject(&self) -> P;
}
Expand description

The sources of a call struct.

This trait allows to differentiate between the sender of a call and the subject of the call. The sender account submitted the call to the chain and might pay all fees and deposits that are required by the call.

Required Methods§

source

fn sender(&self) -> S

The sender of the call who will pay for all deposits and fees.

source

fn subject(&self) -> P

The subject of the call.

Implementations on Foreign Types§

source§

impl<S: Clone, P: Clone> CallSources<S, P> for (S, P)

source§

fn sender(&self) -> S

source§

fn subject(&self) -> P

Implementors§

source§

impl<AccountId: Clone, SubjectId: Clone> CallSources<AccountId, SubjectId> for DoubleOrigin<AccountId, SubjectId>

source§

impl<S: Clone> CallSources<S, S> for S