Skip to main content

Validate

Trait Validate 

Source
pub trait Validate {
    // Required method
    fn validate(&self, value: &Value) -> Result<(), DbmsError>;
}
Expand description

Trait for validating crate::prelude::Values.

Required Methods§

Source

fn validate(&self, value: &Value) -> Result<(), DbmsError>

Validates the given crate::prelude::Value.

In case of error it should return a crate::prelude::DbmsError::Validation error.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§