pub trait Validate { // Required method fn is_valid(&self) -> bool; }
The Validate trait.
return true if the type is valid, false otherwise.