pub struct NapiStructField {Show 14 fields
pub name: Member,
pub js_name: String,
pub symbol_for: Option<(String, Span)>,
pub well_known_symbol: Option<(String, Span)>,
pub ty: Type,
pub getter: bool,
pub setter: bool,
pub writable: bool,
pub enumerable: bool,
pub configurable: bool,
pub comments: Vec<String>,
pub skip_typescript: bool,
pub ts_type: Option<String>,
pub has_lifetime: bool,
}Fields§
§name: Member§js_name: String§symbol_for: Option<(String, Span)>§well_known_symbol: Option<(String, Span)>The Symbol member name, e.g. iterator for Symbol.iterator.
ty: Type§getter: bool§setter: bool§writable: bool§enumerable: bool§configurable: bool§comments: Vec<String>§skip_typescript: bool§ts_type: Option<String>§has_lifetime: boolTrait Implementations§
Source§impl Clone for NapiStructField
impl Clone for NapiStructField
Auto Trait Implementations§
impl !Send for NapiStructField
impl !Sync for NapiStructField
impl Freeze for NapiStructField
impl RefUnwindSafe for NapiStructField
impl Unpin for NapiStructField
impl UnsafeUnpin for NapiStructField
impl UnwindSafe for NapiStructField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more