Crate serde_v8[−][src]
Modules
Structs
serde_v8::Value allows passing through v8::Value
s untouched
when encoding/decoding and allows mixing rust & v8 values in
structs, tuples…
The implementation mainly breaks down to:
Enums
SerializablePkg exists to provide a fast path for op returns, allowing them to avoid boxing primtives (ints/floats/bool/unit/…)
Traits
Serializable exists to allow boxing values as “objects” to be serialized later, this is particularly useful for async op-responses. This trait is a more efficient replacement for erased-serde that makes less allocations, since it’s specific to serde_v8 (and thus doesn’t have to have generic outputs, etc…)