use-identifier
String-backed and typed identifier primitives for RustUse.
Install
[]
= "0.0.1"
Foundation
use-identifier provides a validated Identifier type plus a lightweight TypedIdentifier<K> wrapper for cases where an identifier should carry domain meaning without changing its storage shape.
Example
use ;
;
let plain = new?;
let typed = new?;
assert_eq!;
assert_eq!;
# Ok::
When to use directly
Choose use-identifier when plain validated identifiers or a typed wrapper are the only ID surface you need.
Scope
- Identifiers stay string-backed.
- Validation stays predictable and ASCII-oriented.
- Registry lookup, persistence, and generation policies are out of scope.
Status
use-identifier is a pre-1.0 crate with a deliberately small API.