Trait value_ext::AsType

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

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsType<'_> for bool

source§

impl AsType<'_> for i32

source§

impl AsType<'_> for i64

source§

impl AsType<'_> for u32

source§

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

Implementors§