pub trait Validate { // Provided method fn validate(&mut self) -> Result<Problems, Problems> { ... } }
Call to validate the object, returning errors and warnings.
The Ok value is a Problems object contain that is either empty or contains only warnings. The Err value is a Problems object containing at least one error.
Ok
Problems
Err