Skip to main content

Validatable

Trait Validatable 

Source
pub trait Validatable {
    // Required method
    fn do_validate(&self) -> Result<(), ApiError>;
}
Expand description

Unified validation trait for synchronous validation

This trait allows uniform access to both validator (external) and rustapi_validate::v2 (internal) validation engines.

Required Methods§

Source

fn do_validate(&self) -> Result<(), ApiError>

Perform synchronous validation

Implementors§

Source§

impl<T> Validatable for T
where T: Validate,