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

SnapshotFrameAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

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

Implementations on Foreign Types§

source§

impl SnapshotFrameAccount for Account<'_, SnapshotFrame>

source§

fn pubkey(&self) -> Pubkey

source§

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

Implementors§