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