Skip to main content

ColumnValue

Trait ColumnValue 

Source
pub trait ColumnValue: Send + Sync {
    // Required methods
    fn to_sql_string(&self) -> String;
    fn column_type(&self) -> &'static str;
}

Required Methods§

Source

fn to_sql_string(&self) -> String

Source

fn column_type(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ColumnValue for String

Source§

fn to_sql_string(&self) -> String

Source§

fn column_type(&self) -> &'static str

Implementors§