pub trait ValueType: Sized {
    // Required methods
    fn try_from(v: Value) -> Result<Self, ValueTypeErr>;
    fn type_name() -> String;
    fn array_type() -> ArrayType;
    fn column_type() -> ColumnType;

    // Provided methods
    fn unwrap(v: Value) -> Self { ... }
    fn expect(v: Value, msg: &str) -> Self { ... }
}

Required Methods§

Provided Methods§

fn unwrap(v: Value) -> Self

fn expect(v: Value, msg: &str) -> Self

Implementations on Foreign Types§

§

impl ValueType for i16

§

impl ValueType for u16

§

impl ValueType for f32

§

impl ValueType for i32

§

impl ValueType for Vec<u8, Global>

§

impl ValueType for bool

§

impl<T> ValueType for Option<T>where T: ValueType + Nullable,

§

impl ValueType for char

§

impl ValueType for String

§

impl ValueType for u64

§

impl ValueType for u32

§

impl ValueType for f64

§

impl ValueType for u8

§

impl ValueType for i64

§

impl ValueType for i8

§

impl ValueType for Cow<'_, str>

Implementors§