| Crates.io | iso10383-static |
| lib.rs | iso10383-static |
| version | 0.4.0 |
| created_at | 2026-01-02 16:23:20.966692+00 |
| updated_at | 2026-01-15 04:17:10.527607+00 |
| description | Static ISO 10383 Market Identifier Code Data |
| homepage | |
| repository | https://github.com/jcape/iso10383 |
| max_upload_size | |
| id | 2018850 |
| size | 2,724,867 |
This crate contains no-std and no-std::no-alloc structures and data from the ISO 10383 MIC data distributed by the ISO 20022 Website. More specifically, it contains a Code enum which enumerates all of the market identifier codes distributed, with accessors to read particular data, and a set of constants containing individual records.
If you're only looking for a simple string-oriented type that will perform basic well-formedness checks on a MIC code string, but not ensure the given code actuall exists, you should use iso10383-types.
default: Enables the serde feature.serde: Enables the serialization and deserialization traits of the code enum and MIC record data.alloc: Enables the variants of serde serialization and deserialization which require alloc. This should be enabled if serde has it's own alloc feature enabled.use iso10383_types::mic;
use iso10383_static::Code;
const MIC: &mic = match mic::from_str("IEXG") {
Ok(mic) => mic,
Err(_) => panic!("Static MICs should parse"),
};
let code = Code::from_mic(MIC).expect("valid code");
assert_eq!(Code::Iexg, code);