snarkvm_console_types_string

Trait DeserializeExt

Source
pub trait DeserializeExt<'de>: DeserializeOwned {
    // Required method
    fn take_from_value<D>(
        value: &mut Value,
        field: &str,
    ) -> Result<Self, <D as Deserializer<'de>>::Error>
       where D: Deserializer<'de>;
}
Expand description

A helper trait used to simplify value extraction.

Required Methods§

Source

fn take_from_value<D>( value: &mut Value, field: &str, ) -> Result<Self, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'de, T> DeserializeExt<'de> for T