igumnoff / shiva

Shiva library: Implementation in Rust of a parser and generator for documents of any type
https://docs.rs/shiva
GNU General Public License v3.0
159 stars 10 forks source link

Refactor DocumentType enum #96

Closed joserochadocarmo closed 2 months ago

joserochadocarmo commented 2 months ago

Summary This Pull Request refactors the DocumentType enum to leverage the strum crate for deriving additional functionality, ensuring a more DRY (Don't Repeat Yourself) codebase. This improvement retains compatibility with clap for command-line argument parsing. Also simplifying operations like parse, generate, or match document types.