#![allow(dead_code)]
use type_description::{AsTypeDescription, TypeDescription};
#[derive(Debug, TypeDescription)]
struct Window {
open: bool,
}
#[derive(Debug, TypeDescription)]
#[description(untagged)]
enum Door {
Wooden,
Steel,
Plastic,
}
#[derive(Debug, TypeDescription)]
struct Ac {
on: bool,
temperature: f32,
}
#[derive(Debug, TypeDescription)]
struct House {
windows: Vec<Window>,
doors: Vec<Door>,
ac: Ac,
tropical: bool,
}
#[test]
fn check_type_description() {
let desc = House::as_type_description();
println!("{:#?}", desc);
}