Commit e06b670
committed
feat: add Username domain type for Linux system usernames
Add new domain type to replace hardcoded username strings:
- Username validation following Linux naming requirements
- Generic constructor accepting Into<String> for better ergonomics
- Explicit error handling with UsernameError enum
- Comprehensive test suite with 27 username-specific tests
- Support for serde serialization/deserialization
- Complete trait implementations (Display, FromStr, AsRef, etc.)
This provides type safety and validation for system usernames used in
deployment and infrastructure management.1 parent 18e275b commit e06b670
2 files changed
+471
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
0 commit comments