Skip to main content

NullValue

Trait NullValue 

Source
pub trait NullValue: SqlType {
    const NULL_VALUE: Value;
}
Expand description

A base SQL type’s typed NULL — see Value::NullI32 etc. for why this can’t just be a single untyped Value::Null.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl NullValue for BigInt

Source§

const NULL_VALUE: Value = Value::NullI64

Source§

impl NullValue for Bool

Source§

const NULL_VALUE: Value = Value::NullBool

Source§

impl NullValue for Bytes

Source§

const NULL_VALUE: Value = Value::NullBytes

Source§

impl NullValue for Date

Source§

const NULL_VALUE: Value = Value::NullDate

Source§

impl NullValue for Integer

Source§

const NULL_VALUE: Value = Value::NullI32

Source§

impl NullValue for Numeric

Source§

const NULL_VALUE: Value = Value::NullNumeric

Source§

impl NullValue for Real

Source§

const NULL_VALUE: Value = Value::NullF64

Source§

impl NullValue for Text

Source§

const NULL_VALUE: Value = Value::NullText

Source§

impl NullValue for Timestamptz

Source§

const NULL_VALUE: Value = Value::NullTimestamptz

Source§

impl NullValue for Uuid

Source§

const NULL_VALUE: Value = Value::NullUuid