isin 0.1.19

Support for creating and validating ISINs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Example of generating JSON Schema for ISIN type

use isin::ISIN;
use schemars::schema_for;

fn main() {
    // Generate the JSON schema for ISIN
    let schema = schema_for!(ISIN);

    // Convert to JSON and print
    let schema_json = serde_json::to_string_pretty(&schema).unwrap();
    println!("JSON Schema for ISIN:");
    println!("{}", schema_json);
}