pub struct Value<'s> {
    pub v8_value: Local<'s, Value>,
}
Expand description

serde_v8::Value allows passing through v8::Values untouched when encoding/decoding and allows mixing rust & v8 values in structs, tuples… The implementation mainly breaks down to:

  1. Transmuting between u64 <> serde_v8::Value
  2. Using special struct/field names to detect these values
  3. Then serde “boilerplate”

Fields

v8_value: Local<'s, Value>

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.