invr 0.2.3

Declarative data validation engine using invariants executed on Polars DataFrames.
1
2
3
4
5
6
7
8
9
10
11
use crate::invariant::value_object::id::InvariantId;
use crate::invariant::value_object::id::error::InvariantIdError;
use std::str::FromStr;

impl FromStr for InvariantId {
    type Err = InvariantIdError;

    fn from_str(s: &str) -> Result<Self, Self::Err> {
        Self::new(s)
    }
}