pub trait SelfValidating {
// Required method
fn self_validate(&self) -> Result<(), ContractError>;
}
Expand description
A trait that defines a struct that validates its own fields.
Required Methods§
sourcefn self_validate(&self) -> Result<(), ContractError>
fn self_validate(&self) -> Result<(), ContractError>
Validates all fields by self-reference, where necessary.