3 ms·
The semantics are a little different in that you have to explicitly call .validate(), but Rust's "validator" crate[0] feels a lot like Pydantic to me. [0]https
by kstrauser 2y ago
The semantics are a little different in that you have to explicitly call .validate(), but Rust's "validator" crate[0] feels a lot like Pydantic to me.
[0]https://docs.rs/validator/latest/validator/ https://docs.rs/validator/latest/validator/
- xarope 2y agoI'm aware of this as well as go(lang)'s https://github.com/go-playground/validator https://github.com/go-playground/validator, so you are right, I'm wondering about a more implicit validator like what Pydantic does when a value is assigned, versus an explicit call to validate().