Trait mz_repr::AsColumnType

source ·
pub trait AsColumnType {
    // Required method
    fn as_column_type() -> ColumnType;
}
Expand description

Types that implement this trait can be stored in an SQL column with the specified ColumnType

Required Methods§

source

fn as_column_type() -> ColumnType

The SQL column type of this Rust type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsColumnType for bool

source§

impl AsColumnType for String

source§

impl AsColumnType for Vec<u8>

source§

impl<'a> AsColumnType for &'a str

source§

impl<'a> AsColumnType for &'a [u8]

source§

impl<'a> AsColumnType for f32

source§

impl<'a> AsColumnType for f64

source§

impl<'a> AsColumnType for i16

source§

impl<'a> AsColumnType for i32

source§

impl<'a> AsColumnType for i64

source§

impl<'a> AsColumnType for u16

source§

impl<'a> AsColumnType for u32

source§

impl<'a> AsColumnType for u64

source§

impl<'a> AsColumnType for NaiveTime

source§

impl<'a> AsColumnType for Uuid

source§

impl<B: AsColumnType> AsColumnType for Option<B>

source§

impl<E, B: AsColumnType> AsColumnType for Result<B, E>

Implementors§