Type Alias Object

Source
pub type Object = JsObject;

Aliased Type§

struct Object(/* private fields */);

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§