Trait UnstakeAccount

Source
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§