Skip to main content

ColumnTypeOf

Trait ColumnTypeOf 

Source
pub trait ColumnTypeOf {
    // Required method
    fn column_type() -> ColumnType;

    // Provided methods
    fn nullable() -> bool { ... }
    fn choices() -> Option<Vec<&'static str>> { ... }
}
Expand description

Maps a Rust field type to a SQL column type.

Required Methods§

Provided Methods§

Source

fn nullable() -> bool

Source

fn choices() -> Option<Vec<&'static str>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ColumnTypeOf for OffsetDateTime

Source§

impl ColumnTypeOf for String

Source§

impl ColumnTypeOf for Vec<u8>

Source§

impl ColumnTypeOf for bool

Source§

impl ColumnTypeOf for f64

Source§

impl ColumnTypeOf for i64

Source§

impl<T: ColumnTypeOf> ColumnTypeOf for Option<T>

Implementors§