iso10383-static

Crates.ioiso10383-static
lib.rsiso10383-static
version0.4.0
created_at2026-01-02 16:23:20.966692+00
updated_at2026-01-15 04:17:10.527607+00
descriptionStatic ISO 10383 Market Identifier Code Data
homepage
repositoryhttps://github.com/jcape/iso10383
max_upload_size
id2018850
size2,724,867
James Cape (jcape)

documentation

https://docs.rs/iso10383-static

README

Static ISO 10383 Market Identifier Code Data

Crates.ioDocs StatusMSRV 1.88.0

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.

Features

  • 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.

Examples

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);
Commit count: 99

cargo fmt