Skip to main content

BindValue

Trait BindValue 

Source
pub trait BindValue<'a, V: SQLParam, Expected: DataType>: Sized {
    // Required method
    fn into_bind_value(self) -> V;
}
Expand description

A Rust value that can be bound where SQL type Expected is wanted.

Implemented for every T that converts into V and whose ValueTypeForDialect type can be stored in Expected. Used by TypedPlaceholder::bind.

Required Methods§

Source

fn into_bind_value(self) -> V

Converts the value into the dialect’s value type.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<V, Expected, T> BindValue<'_, V, Expected> for T