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: IdentThe name of this enum in Rust code
js_name: StringThe 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: u32The value to use for a none variant of the enum
generate_typescript: boolWhether to generate a typescript definition for this enum