Trait clockwork_queue_program::objects::ConfigAccount
source · [−]pub trait ConfigAccount {
fn init(&mut self, admin: Pubkey, worker_pool: Pubkey) -> Result<()>;
fn update(&mut self, settings: ConfigSettings) -> Result<()>;
}
Expand description
Trait for reading and writing to the config account.
Required Methods
sourcefn init(&mut self, admin: Pubkey, worker_pool: Pubkey) -> Result<()>
fn init(&mut self, admin: Pubkey, worker_pool: Pubkey) -> Result<()>
Initialize the account to hold config object.
sourcefn update(&mut self, settings: ConfigSettings) -> Result<()>
fn update(&mut self, settings: ConfigSettings) -> Result<()>
Updates the config object.