Crates.io | leim |
lib.rs | leim |
version | 0.2.0 |
source | src |
created_at | 2023-06-09 15:02:18.908812 |
updated_at | 2023-06-19 12:02:27.682558 |
description | A library to handle Legal Entity Identifiers (LEIs) |
homepage | https://21analytics.ch |
repository | https://gitlab.com/21analytics/lei |
max_upload_size | |
id | 886327 |
size | 27,050 |
leim
is a Rust library for working with Legal Entity Identifiers (LEIs) as defined
in ISO 17442-1:2020.
fn main() {
use leim as lei;
assert!(lei::LEI::try_from("2594007XIACKNMUAW223").is_ok());
assert_eq!(
lei::LEI::try_from("2594007XIACKNMUAW222"),
Err(lei::Error::InvalidChecksum)
);
}
Add leim
to your Cargo.toml
:
cargo add leim
lei
is another crate for working with LEIs.
This crate is developed and maintained by 21 Analytics.
This project is licensed under the MIT license.