pub trait WorkerAccount {
    // Required methods
    fn pubkey(&self) -> Pubkey;
    fn init(
        &mut self,
        authority: &mut Signer<'_>,
        id: u64,
        signatory: &Signer<'_>
    ) -> Result<(), Error>;
    fn update(&mut self, settings: WorkerSettings) -> Result<(), Error>;
}
Expand description

WorkerAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

fn init( &mut self, authority: &mut Signer<'_>, id: u64, signatory: &Signer<'_> ) -> Result<(), Error>

source

fn update(&mut self, settings: WorkerSettings) -> Result<(), Error>

Implementations on Foreign Types§

source§

impl WorkerAccount for Account<'_, Worker>

source§

fn pubkey(&self) -> Pubkey

source§

fn init( &mut self, authority: &mut Signer<'_>, id: u64, signatory: &Signer<'_> ) -> Result<(), Error>

source§

fn update(&mut self, settings: WorkerSettings) -> Result<(), Error>

Implementors§