baskerville 0.1.0

Infer and validate data-type schemas in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Validator;

#[derive(Debug, Clone)]
pub struct Empty;

impl Validator for Empty {
    fn validate(&mut self, value: &str) -> bool {
        value.is_empty()
    }
}