Skip to main content

IntoColumnName

Trait IntoColumnName 

pub trait IntoColumnName {
    // Required method
    fn into_column_name(self) -> &'static str;
}
Expand description

Anything that can name a single SQL column. Lets coalesce accept both bare &'static str column names and typed FieldRef handles, so callers don’t have to choose between schema-rooted typing and ad-hoc strings at the call site.

Required Methods§

fn into_column_name(self) -> &'static str

Implementations on Foreign Types§

§

impl IntoColumnName for &'static str

§

fn into_column_name(self) -> &'static str

Implementors§

§

impl<M, T> IntoColumnName for FieldRef<M, T>