A crate which implements a serde Deserializer using the regex crate, so you could deserialize into structs using named regex captures
- Rust 100%
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
regex_deserializer
A crate which implements a serde Deserializer using the regex crate, so you could deserialize into structs using named regex captures
Intended usecase is to deserialize a string as a sequence of captures and convert that into a sequence or a struct (with named captures). Another usecase is a boolean indicating whether the pattern matched.
This is quite crude, but works. You can see an example in tests/basic.rs