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

UnstakeAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

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

Implementations on Foreign Types§

source§

impl UnstakeAccount for Account<'_, Unstake>

source§

fn pubkey(&self) -> Pubkey

source§

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

Implementors§