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.
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.