pub trait Validate {
// Required method
fn validate(&self) -> Result<()>;
// Provided method
fn validate_with_context(&self, context: &str) -> Result<()> { ... }
}Expand description
Core validation trait that can be derived for automatic parameter validation
Required Methods§
Provided Methods§
Sourcefn validate_with_context(&self, context: &str) -> Result<()>
fn validate_with_context(&self, context: &str) -> Result<()>
Validate and provide detailed error information