MiracleAccountInfoValidation

Trait MiracleAccountInfoValidation 

Source
pub trait MiracleAccountInfoValidation {
    // Required methods
    fn is_config(&self) -> Result<&Self, ProgramError>;
    fn is_treasury(&self) -> Result<&Self, ProgramError>;
    fn is_treasury_tokens(&self) -> Result<&Self, ProgramError>;
    fn is_snapshot(&self) -> Result<&Self, ProgramError>;
    fn is_metrics(&self) -> Result<&Self, ProgramError>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MiracleAccountInfoValidation for AccountInfo<'_>

Implementors§