Struct napi_derive_backend::ast::NapiStructField
source · pub struct NapiStructField {
pub name: Member,
pub js_name: String,
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>,
}
Fields§
§name: Member
§js_name: String
§ty: Type
§getter: bool
§setter: bool
§writable: bool
§enumerable: bool
§configurable: bool
§comments: Vec<String>
§skip_typescript: bool
§ts_type: Option<String>
Trait Implementations§
source§impl Clone for NapiStructField
impl Clone for NapiStructField
source§fn clone(&self) -> NapiStructField
fn clone(&self) -> NapiStructField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NapiStructField
impl RefUnwindSafe for NapiStructField
impl !Send for NapiStructField
impl !Sync for NapiStructField
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)