Skip to main content

NullableBindValue

Trait NullableBindValue 

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

An Option<T> that can be bound where a nullable Expected is wanted.

Used by TypedPlaceholder::bind_opt.

Required Methods§

Source

fn into_nullable_bind_value(self) -> V

Converts the value into the dialect’s value type (None becomes NULL).

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<V, Expected, T> NullableBindValue<'_, V, Expected> for Option<T>

Implementors§