html_bindgen/generate/
mod.rs

1pub mod html;
2pub mod sys;
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Serialize, Deserialize)]
7pub struct Module {
8    pub name: String,
9    pub description: String,
10}
11
12/// Map modules to the MDN hierarchy
13#[derive(Debug, Serialize, Deserialize)]
14pub struct ModuleMapping {
15    pub name: String,
16    pub children: Vec<String>,
17}
18
19/// A generated code file, returned so it can be written to disk.
20#[derive(Debug)]
21pub struct CodeFile {
22    pub filename: String,
23    pub dir: String,
24    pub code: String,
25}