pub trait DelegationAccount {
    // Required methods
    fn pubkey(&self) -> Pubkey;
    fn init(
        &mut self,
        authority: Pubkey,
        id: u64,
        worker: Pubkey
    ) -> Result<(), Error>;
}
Expand description

DelegationAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

fn init( &mut self, authority: Pubkey, id: u64, worker: Pubkey ) -> Result<(), Error>

Implementations on Foreign Types§

source§

impl DelegationAccount for Account<'_, Delegation>

source§

fn pubkey(&self) -> Pubkey

source§

fn init( &mut self, authority: Pubkey, id: u64, worker: Pubkey ) -> Result<(), Error>

Implementors§