cinputs 0.2.3

Crate that simplifies the constraining of inputs
Documentation
1
2
3
4
5
6
7
//! Constraint trait definition
use crate::error::Result;

/// Trait which represents a object which can verify and validate data
pub trait Constraint<T> {
    fn validate(&self, data: &T) -> Result<()>;
}