pub trait ValidityConditionChecker<Condition: ValidityCondition>: BorshDeserialize + BorshSerialize + Debug {
type Error: Into<Error>;
// Required method
fn check(&mut self, condition: &Condition) -> Result<(), Self::Error>;
}
Expand description
This trait expresses that a type can check a validity condition.
Required Associated Types§
sourcetype Error: Into<Error>
type Error: Into<Error>
The error type returned when a ValidityCondition
is invalid.