rust_query

Trait IntoColumn

source
pub trait IntoColumn<'t, S>: Typed + Clone {
    // Provided method
    fn into_column(self) -> Column<'t, S, Self::Typ> { ... }
}
Expand description

Trait for all values that can be used in queries.

This includes Columns from queries and rust values.

  • 't is the context in which this value is valid.
  • S is the schema in which this value is valid.

Provided Methods§

source

fn into_column(self) -> Column<'t, S, Self::Typ>

Turn this value into a Column.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'t, S> IntoColumn<'t, S> for &str

source§

impl<'t, S> IntoColumn<'t, S> for bool

source§

impl<'t, S> IntoColumn<'t, S> for f64

source§

impl<'t, S> IntoColumn<'t, S> for i64

source§

impl<'t, S> IntoColumn<'t, S> for String

source§

impl<'t, S, T> IntoColumn<'t, S> for &T
where T: IntoColumn<'t, S>,

source§

impl<'t, S, T: IntoColumn<'t, S, Typ = X>, X: MyTyp<Sql: Nullable>> IntoColumn<'t, S> for Option<T>

Implementors§

source§

impl<'t, S> IntoColumn<'t, S> for UnixEpoch

source§

impl<'t, S: 't, T: 't> IntoColumn<'t, S> for Column<'t, S, T>

source§

impl<'t, T: Table> IntoColumn<'t, <T as Table>::Schema> for TableRow<'_, T>

source§

impl<S> IntoColumn<'_, S> for NoTable