ConfigAccount

Trait ConfigAccount 

Source
pub trait ConfigAccount {
    // Required methods
    fn new(&mut self, admin: Pubkey, rotator: Pubkey) -> Result<()>;
    fn update(
        &mut self,
        admin: &Signer<'_>,
        settings: ConfigSettings,
    ) -> Result<()>;
}
Expand description

ConfigAccount

Required Methods§

Source

fn new(&mut self, admin: Pubkey, rotator: Pubkey) -> Result<()>

Source

fn update(&mut self, admin: &Signer<'_>, settings: ConfigSettings) -> Result<()>

Implementations on Foreign Types§

Source§

impl ConfigAccount for Account<'_, Config>

Source§

fn new(&mut self, admin: Pubkey, rotator: Pubkey) -> Result<()>

Source§

fn update(&mut self, admin: &Signer<'_>, settings: ConfigSettings) -> Result<()>

Implementors§