Crates.io | jsonto |
lib.rs | jsonto |
version | 0.1.1 |
source | src |
created_at | 2023-04-06 06:15:17.040207 |
updated_at | 2023-04-06 06:31:54.686448 |
description | json string to frequently used programming languages type, it's lightweight and fast |
homepage | |
repository | https://github.com/atopx/jsonto |
max_upload_size | |
id | 831955 |
size | 97,903 |
json string to frequently used programming languages type, it's lightweight and fast
fn main() {
let input_str = r#"{
"code": "country",
"type": "PROPERTY_INT",
"value": "国家"
}"#;
let mut options = jsonto::Options::default();
options.output_mode = jsonto::OutputMode::Rust;
let result = jsonto::codegen("property", input_str, options).unwrap();
println!("-----auto genaration-----\n{}", result);
}