Docs.rs
napi-2.4.0
napi 2.4.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
aqrln
Brooooooklyn
Dependencies
chrono ^0.4
normal
ctor ^0.1
normal
encoding_rs ^0.8
normal
lazy_static ^1
normal
napi-sys ^2.1.0
normal
serde ^1
normal
serde_json ^1
normal
tokio ^1
normal
Versions
16.48%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Object
Methods
get
keys
set
Trait Implementations
TypeName
ValidateNapiValue
In napi::bindgen_prelude
?
Type Definition
napi
::
bindgen_prelude
::
Object
source
·
[
−
]
pub type Object =
JsObject
;
Implementations
source
impl
Object
source
pub fn
get
<K:
AsRef
<
str
>, V:
FromNapiValue
>(
&self,
field: K
) ->
Result
<
Option
<V>>
source
pub fn
set
<K:
AsRef
<
str
>, V:
ToNapiValue
>(
&mut self,
field: K,
val: V
) ->
Result
<
()
>
source
pub fn
keys
(obj: &
Object
) ->
Result
<
Vec
<
String
>>
Trait Implementations
source
impl
TypeName
for
Object
source
fn
type_name
() -> &'static
str
source
fn
value_type
() ->
ValueType
source
impl
ValidateNapiValue
for
Object
source
fn
type_of
() ->
Vec
<
ValueType
>
source
unsafe fn
validate
(env:
napi_env
, napi_val:
napi_value
) ->
Result
<
napi_value
>
Safety
Read more