Struct node_bindgen::sys::napi_property_descriptor
source · pub struct napi_property_descriptor {
pub utf8name: *const i8,
pub name: *mut napi_value__,
pub method: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>,
pub getter: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>,
pub setter: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>,
pub value: *mut napi_value__,
pub attributes: u32,
pub data: *mut c_void,
}Fields§
§utf8name: *const i8§name: *mut napi_value__§method: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>§getter: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>§setter: Option<unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__>§value: *mut napi_value__§attributes: u32§data: *mut c_voidTrait Implementations§
source§impl Clone for napi_property_descriptor
impl Clone for napi_property_descriptor
source§fn clone(&self) -> napi_property_descriptor
fn clone(&self) -> napi_property_descriptor
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 more