1//! Validations for accounts.
2#![allow(clippy::all)]
34use anchor_lang::prelude::*;
56/// Validates the contents of a variable. Generally used for [Accounts] structs and struct members.
7pub trait Validate<'info> {
8/// Validates the account struct.
9fn validate(&self) -> Result<()>;
10}