Trait WorkerAccount

Source
pub trait WorkerAccount {
    // Required methods
    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§