typia 0.1.1

Rust version of typia.io for type-safe JSON validation and LLM JSON parsing
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::HashMap;

use typia::LLMData;

#[derive(LLMData)]
struct NonStringMapKey {
    #[typia(tags(values(tags(minLength(1)))))]
    names: HashMap<u32, String>,
}

fn main() {}