FromValue

Trait FromValue 

Source
pub trait FromValue: Sized {
    // Required method
    fn from_value(v: &Value) -> Result<Self, ShellError>;
}

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 FromValue for (Vec<String>, Vec<Value>)

Source§

impl FromValue for bool

Source§

impl FromValue for f64

Source§

impl FromValue for i64

Source§

impl FromValue for usize

Source§

impl FromValue for String

Source§

impl FromValue for Vec<Value>

Source§

impl FromValue for Vec<bool>

Source§

impl FromValue for Vec<u8>

Source§

impl FromValue for Vec<String>

Source§

impl FromValue for Vec<Spanned<String>>

Source§

impl FromValue for DateTime<FixedOffset>

Implementors§