AsValue

Trait AsValue 

Source
pub trait AsValue {
    // Required methods
    fn as_empty_value() -> Value;
    fn as_value(self) -> Value;
    fn try_from_value(value: Value) -> Result<Self>
       where Self: Sized;
}

Required Methods§

Source

fn as_empty_value() -> Value

Source

fn as_value(self) -> Value

Source

fn try_from_value(value: Value) -> Result<Self>
where Self: Sized,

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 AsValue for bool

Source§

impl AsValue for char

Source§

impl AsValue for f32

Source§

impl AsValue for f64

Source§

impl AsValue for i8

Source§

impl AsValue for i16

Source§

impl AsValue for i32

Source§

impl AsValue for i64

Source§

impl AsValue for i128

Source§

impl AsValue for u8

Source§

impl AsValue for u16

Source§

impl AsValue for u32

Source§

impl AsValue for u64

Source§

impl AsValue for u128

Source§

impl AsValue for Box<[u8]>

Source§

impl AsValue for String

Source§

impl AsValue for Duration

Source§

impl AsValue for Decimal

Source§

impl AsValue for Date

Source§

impl AsValue for Duration

Source§

impl AsValue for OffsetDateTime

Source§

impl AsValue for PrimitiveDateTime

Source§

impl AsValue for Time

Source§

impl AsValue for Uuid

Source§

impl<'a> AsValue for Cow<'a, str>

Source§

impl<K: AsValue + Eq + Hash, V: AsValue> AsValue for HashMap<K, V>

Source§

impl<K: AsValue + Ord, V: AsValue> AsValue for BTreeMap<K, V>

Source§

impl<T: AsValue + ToOwned<Owned = impl AsValue>> AsValue for Rc<T>

Source§

impl<T: AsValue + ToOwned<Owned = impl AsValue>> AsValue for Arc<T>

Source§

impl<T: AsValue + ToOwned<Owned = impl AsValue>> AsValue for Cell<T>

Source§

impl<T: AsValue + ToOwned<Owned = impl AsValue>> AsValue for RefCell<T>

Source§

impl<T: AsValue> AsValue for Option<T>

Source§

impl<T: AsValue> AsValue for Box<T>

Source§

impl<T: AsValue> AsValue for LinkedList<T>

Source§

impl<T: AsValue> AsValue for VecDeque<T>

Source§

impl<T: AsValue> AsValue for Vec<T>

Source§

impl<T: AsValue> AsValue for RwLock<T>

Source§

impl<T: AsValue, const N: usize> AsValue for [T; N]

Implementors§

Source§

impl AsValue for Interval

Source§

impl<T: AsValue> AsValue for Passive<T>

Source§

impl<const W: u8, const S: u8> AsValue for FixedDecimal<W, S>