Crate serde_v8

Source

Structs§

BigInt
ByteString
Deserializer
DetachedBuffer
ExternalPointer
GlobalValue
A wrapper around v8::Global<v8::Value> to allow for passing globals transparently through a serde boundary.
JsBuffer
KeyCache
Serializer
ToJsBuffer
U16String
V8Slice
A V8Slice encapsulates a slice that’s been borrowed from a JavaScript ArrayBuffer object. JavaScript objects can normally be garbage collected, but the existence of a V8Slice inhibits this until it is dropped. It behaves much like an Arc<u8>.
Value
serde_v8::Value is used internally to serialize/deserialize values in objects and arrays. This struct was exposed to user code in the past, but we don’t want to do that anymore as it leads to inefficient usages - eg. wrapping a V8 object in serde_v8::Value and then immediately unwrapping it.

Enums§

AnyValue
An untagged enum type that can be any of number, string, bool, bigint, or buffer.
Error
StringOrBuffer

Traits§

V8Sliceable
A type that may be represented as a V8Slice.

Functions§

from_v8
from_v8_cached
to_utf8
to_v8

Type Aliases§

Result