Struct wasm_bindgen_backend::ast::Enum
source · pub struct Enum {
pub rust_name: Ident,
pub js_name: String,
pub variants: Vec<Variant>,
pub comments: Vec<String>,
pub hole: u32,
pub generate_typescript: bool,
}
Expand description
Information about an Enum being exported
Fields§
§rust_name: Ident
The name of this enum in Rust code
js_name: String
The name of this enum in JS code
variants: Vec<Variant>
The variants provided by this enum
comments: Vec<String>
The doc comments on this enum, if any
hole: u32
The value to use for a none
variant of the enum
generate_typescript: bool
Whether to generate a typescript definition for this enum