Trait SnapshotFrameAccount

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