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

Trait for reading and writing to a penalty account.

Required Methods§

source

fn pubkey(&self) -> Pubkey

Get the pubkey of the penalty account.

source

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

Initialize the account to hold penalty object.

Implementations on Foreign Types§

source§

impl PenaltyAccount for Account<'_, Penalty>

source§

fn pubkey(&self) -> Pubkey

source§

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

Implementors§