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.

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.

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