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

DelegationAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

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

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<()>

Implementors§