Skip to main content

BindValue

Trait BindValue 

Source
pub trait BindValue {
    // Required method
    fn to_value(&self) -> Value;
}
Expand description

Converts a Rust value into a bound Value.

Implemented for the primitive column types the ORM understands. A blanket implementation maps Option<T> so that None becomes Value::Null.

Required Methods§

Source

fn to_value(&self) -> Value

Lowers this value into a bound parameter.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BindValue for &str

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for OffsetDateTime

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for String

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Uuid

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Value

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<String>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<bool>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<f64>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<i32>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<i64>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for Vec<u8>

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for bool

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for f32

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for f64

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for i8

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for i16

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for i32

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for i64

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for u8

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for u16

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for u32

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for u64

Source§

fn to_value(&self) -> Value

Source§

impl BindValue for usize

Source§

fn to_value(&self) -> Value

Source§

impl<T: BindValue> BindValue for Option<T>

Source§

fn to_value(&self) -> Value

Implementors§

Source§

impl BindValue for tork_orm_core::Value