ore_api::loaders

Trait OreAccountInfoValidation

source
pub trait OreAccountInfoValidation {
    // Required methods
    fn is_config(&self) -> Result<&Self, ProgramError>;
    fn is_treasury(&self) -> Result<&Self, ProgramError>;
    fn is_treasury_tokens(&self) -> Result<&Self, ProgramError>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OreAccountInfoValidation for AccountInfo<'_>

Implementors§