Struct serde_v8::Value[][src]

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

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

impl<'de, 's> Deserialize<'de> for Value<'s>[src]

impl<'s> From<Local<'s, Value>> for Value<'s>[src]

impl Serialize for Value<'_>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for Value<'s>

impl<'s> !Send for Value<'s>

impl<'s> !Sync for Value<'s>

impl<'s> Unpin for Value<'s>

impl<'s> UnwindSafe for Value<'s>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.