Validate

Trait Validate 

Source
pub trait Validate<'info> {
    // Required method
    fn validate(&self) -> Result<()>;
}
Expand description

Validates the contents of a variable. Generally used for Accounts structs and struct members.

Required Methods§

Source

fn validate(&self) -> Result<()>

Validates the account struct.

Implementors§