pub trait FromExpr<'transaction, S, From>: 'transaction + Sized {
// Required method
fn from_expr<'columns>(
col: impl IntoExpr<'columns, S, Typ = From>,
) -> Select<'columns, 'transaction, S, Self>;
}
Expand description
Trait for values that can be retrieved from the database using one expression.
This is most likely the trait that you want to implement for your custom datatype. Together with the crate::IntoExpr trait.
Note that this trait can also be implemented using the rust_query::FromExpr derive macro.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.