pub trait Validatable { type Error: Error + Send + Sync + 'static; // Required method fn validate(&self) -> Result<(), Self::Error>; }
Trait for components that can be validated
Validate the component’s current state