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

WorkerAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

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

source

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

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<()>

source§

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

Implementors§