Skip to main content

EscrowAccountInfoValidation

Trait EscrowAccountInfoValidation 

Source
pub trait EscrowAccountInfoValidation {
    // Required methods
    fn is_bank(&self) -> Result<&Self, ProgramError>;
    fn is_config(&self) -> Result<&Self, ProgramError>;
    fn is_escrow(&self) -> Result<&Self, ProgramError>;
    fn is_payment(&self) -> Result<&Self, ProgramError>;
}

Required Methods§

Source

fn is_bank(&self) -> Result<&Self, ProgramError>

Source

fn is_config(&self) -> Result<&Self, ProgramError>

Source

fn is_escrow(&self) -> Result<&Self, ProgramError>

Source

fn is_payment(&self) -> Result<&Self, ProgramError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EscrowAccountInfoValidation for AccountInfo<'_>

Implementors§