Skip to main content

AsType

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".

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 Vec<bool>

Source§

impl AsType<'_> for Vec<f64>

Source§

impl AsType<'_> for Vec<i64>

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 Vec<Value>

Source§

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

Source§

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

Source§

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

Implementors§