| Crates.io | arscode |
| lib.rs | arscode |
| version | 0.2.0 |
| created_at | 2025-11-17 14:23:15.5084+00 |
| updated_at | 2025-12-01 13:56:00.510139+00 |
| description | Working with the German Amtlicher Regionalschlüssel (ARS): parse, validate and manipulate ARS codes. |
| homepage | https://github.com/demot/arscode |
| repository | https://github.com/demot/arscode |
| max_upload_size | |
| id | 1936854 |
| size | 71,805 |
arscode provides Rust types and utilities for working with the German
Amtlicher Regionalschlüssel (ARS) — a twelve-digit hierarchical regional
classification used to identify administrative regions in Germany from the
country level down to municipalities.
Features
FederalState and ARSCodeExamples
use arscode::{ARSCode, ARSLevel, FederalState};
let municipality = ARSCode::new(5, 3, 15, 8, 4, 42).unwrap();
assert_eq!(municipality.level(), ARSLevel::MUNICIPALITY);
println!("{}", municipality);
let state: ARSCode = FederalState::Hamburg.into();
assert_eq!(state.level(), ARSLevel::STATE);
Reference
License This project is licensed under the MIT License.