Skip to main content

IntoValue

Trait IntoValue 

Source
pub trait IntoValue {
    const TYPE: ValueType;

    // Required method
    fn into_value(self) -> Value;
}
Expand description

A raw value that can be handed to the persistence layer as a Value.

Required Associated Constants§

Source

const TYPE: ValueType

The Value variant into_value gives, and whether it may be NULL: what the persistence layer checks a column’s type against at compile time.

Required Methods§

Source

fn into_value(self) -> Value

Convert into a Value.

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 IntoValue for DateTime<Utc>

Source§

impl IntoValue for NaiveDate

Source§

impl IntoValue for NaiveDateTime

Source§

impl IntoValue for NaiveTime

Source§

impl IntoValue for Option<DateTime<Utc>>

Source§

impl IntoValue for Option<NaiveDate>

Source§

impl IntoValue for Option<NaiveDateTime>

Source§

impl IntoValue for Option<NaiveTime>

Source§

impl IntoValue for Option<String>

Source§

impl IntoValue for Option<bool>

Source§

impl IntoValue for Option<f32>

Source§

impl IntoValue for Option<f64>

Source§

impl IntoValue for Option<i8>

Source§

impl IntoValue for Option<i16>

Source§

impl IntoValue for Option<i32>

Source§

impl IntoValue for Option<i64>

Source§

impl IntoValue for Option<u8>

Source§

impl IntoValue for Option<u16>

Source§

impl IntoValue for Option<u32>

Source§

impl IntoValue for String

Source§

impl IntoValue for bool

Source§

impl IntoValue for f32

Source§

impl IntoValue for f64

Source§

impl IntoValue for i8

Source§

impl IntoValue for i16

Source§

impl IntoValue for i32

Source§

impl IntoValue for i64

Source§

impl IntoValue for u8

Source§

impl IntoValue for u16

Source§

impl IntoValue for u32

Implementors§