pub trait IntoColumnValue<V> {
// Required method
fn into_column_value(self) -> V;
}Expand description
What a column’s setter accepts, keyed by what that column’s field
holds: the column’s own Rust type — &str for text — plus the Option
a request struct already carries, wherever leaving the column out means
something. What None means is the position’s own: on an insert it is
NULL for a nullable column and the schema’s default for a defaulted one
(.<column>_null() says the other, where a column is both); on an
update it is untouched, since an UPDATE that says nothing about a
column leaves it alone.
Required Methods§
fn into_column_value(self) -> V
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".