value_ext

Trait AsType

Source
pub trait AsType<'a>: Sized {
    // Required method
    fn from_value(value: &'a Value) -> Result<Self, JsonValueExtError>;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl AsType<'_> for Option<bool>

Source§

impl AsType<'_> for Option<f64>

Source§

impl AsType<'_> for Option<i32>

Source§

impl AsType<'_> for Option<i64>

Source§

impl AsType<'_> for Option<u32>

Source§

impl AsType<'_> for bool

Source§

impl AsType<'_> for f64

Source§

impl AsType<'_> for i32

Source§

impl AsType<'_> for i64

Source§

impl AsType<'_> for u32

Source§

impl<'a> AsType<'a> for &'a str

Source§

impl<'a> AsType<'a> for Option<&'a str>

Implementors§