Expand description
U.S. Employer Identification Number (EIN) parsing and validation.
§Example
use ein::Ein;
let ein: Ein = "12-3456789".parse().unwrap();
assert_eq!(ein.to_string(), "12-3456789");
// Also accepts format without dash
let ein: Ein = "123456789".parse().unwrap();
assert_eq!(ein.to_string(), "12-3456789");Structs§
- Ein
- A validated U.S. Employer Identification Number.
Enums§
- Parse
Error - Errors that can occur when parsing an EIN.