PenaltyAccount

Trait PenaltyAccount 

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