Validatable

Trait Validatable 

Source
pub trait Validatable {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn validate(&self) -> Result<(), Self::Error>;
}
Expand description

Trait for components that can be validated

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn validate(&self) -> Result<(), Self::Error>

Validate the component’s current state

Implementors§