Skip to main content

IntoColumnName

Trait IntoColumnName 

Source
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§

Source

fn into_column_name(self) -> &'static str

Implementations on Foreign Types§

Source§

impl IntoColumnName for &'static str

Source§

fn into_column_name(self) -> &'static str

Implementors§

Source§

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