Struct nodex_api::descriptor::DescriptorValueBuilder
source · [−]pub struct DescriptorValueBuilder {
pub utf8name: Option<String>,
pub name: napi_value,
pub value: napi_value,
pub attributes: NapiPropertyAttributes,
}Expand description
The DescriptorBuild for value.
Fields
utf8name: Option<String>name: napi_valuevalue: napi_valueattributes: NapiPropertyAttributesImplementations
Optional string describing the key for the property, encoded as UTF8. One of utf8name or name must be provided for the property.
Optional napi_value that points to a JavaScript string or symbol to be used as the key for the property. One of utf8name or name must be provided for the property.
The value that’s retrieved by a get access of the property if the property is a data property. If this is passed in, set getter, setter, method and data to NULL (since these members won’t be used).
The attributes associated with the particular property. See napi_property_attributes.
build finale NapiPropertyDescriptor