pub enum Value {
Show 19 variants Null, Boolean(bool), TinyInt(i8), SmallInt(i16), Int(i32), BigInt(i64), HugeInt(i128), UTinyInt(u8), USmallInt(u16), UInt(u32), UBigInt(u64), Float(f32), Double(f64), Decimal(Decimal), Timestamp(TimeUniti64), Text(String), Blob(Vec<u8>), Date32(i32), Time64(TimeUniti64),
}
Expand description

Owning dynamic type value. Value’s type is typically dictated by DuckDB (not by the caller).

See ValueRef for a non-owning dynamic type value.

Variants

Null

The value is a NULL value.

Boolean(bool)

The value is a boolean.

TinyInt(i8)

The value is a signed tiny integer.

SmallInt(i16)

The value is a signed small integer.

Int(i32)

The value is a signed integer.

BigInt(i64)

The value is a signed big integer.

HugeInt(i128)

The value is a signed huge integer.

UTinyInt(u8)

The value is a unsigned tiny integer.

USmallInt(u16)

The value is a unsigned small integer.

UInt(u32)

The value is a unsigned integer.

UBigInt(u64)

The value is a unsigned big integer.

Float(f32)

The value is a f32.

Double(f64)

The value is a f64.

Decimal(Decimal)

The value is a Decimal.

Timestamp(TimeUniti64)

The value is a timestap.

Text(String)

The value is a text string.

Blob(Vec<u8>)

The value is a blob of data

Date32(i32)

The value is a date32

Time64(TimeUniti64)

The value is a time64

Implementations

Returns DuckDB fundamental datatype.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts DuckDB value into Rust value.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Converts Rust value to DuckDB value

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.