1
2
3
4
5
6
7
8
9
//! Validations for accounts.

use anchor_lang::prelude::*;

/// Validates the contents of a variable. Generally used for [Accounts] structs and struct members.
pub trait Validate<'info> {
    /// Validates the account struct.
    fn validate(&self) -> Result<()>;
}