Struct wasm_bindgen_backend::ast::StructField [−][src]
pub struct StructField {
pub rust_name: Member,
pub js_name: String,
pub struct_name: Ident,
pub readonly: bool,
pub ty: Type,
pub getter: Ident,
pub setter: Ident,
pub comments: Vec<String>,
pub generate_typescript: bool,
}The field of a struct
Fields
rust_name: MemberThe name of the field in Rust code
js_name: StringThe name of the field in JS code
struct_name: IdentThe name of the struct this field is part of
readonly: boolWhether this value is read-only to JS
ty: TypeThe type of this field
getter: IdentThe name of the getter shim for this field
setter: IdentThe name of the setter shim for this field
comments: Vec<String>The doc comments on this field, if any
generate_typescript: boolWhether to generate a typescript definition for this field
Trait Implementations
impl Clone for StructField[src]
impl Clone for StructField[src]fn clone(&self) -> StructField[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl ToTokens for StructField[src]
impl ToTokens for StructField[src]