Enum sea_query::value::Value[][src]

pub enum Value {
Show 21 variants Bool(Option<bool>), TinyInt(Option<i8>), SmallInt(Option<i16>), Int(Option<i32>), BigInt(Option<i64>), TinyUnsigned(Option<u8>), SmallUnsigned(Option<u16>), Unsigned(Option<u32>), BigUnsigned(Option<u64>), Float(Option<f32>), Double(Option<f64>), String(Option<Box<String>>), Bytes(Option<Box<Vec<u8>>>), Json(Option<Box<Json>>), Date(Option<Box<NaiveDate>>), Time(Option<Box<NaiveTime>>), DateTime(Option<Box<NaiveDateTime>>), DateTimeWithTimeZone(Option<Box<DateTime<FixedOffset>>>), Uuid(Option<Box<Uuid>>), Decimal(Option<Box<Decimal>>), BigDecimal(Option<Box<BigDecimal>>),
}
Expand description

Value variants

We want Value to be exactly 1 pointer sized, so anything larger should be boxed.

Variants

Bool(Option<bool>)

Tuple Fields

TinyInt(Option<i8>)

Tuple Fields

0: Option<i8>

SmallInt(Option<i16>)

Tuple Fields

0: Option<i16>

Int(Option<i32>)

Tuple Fields

0: Option<i32>

BigInt(Option<i64>)

Tuple Fields

0: Option<i64>

TinyUnsigned(Option<u8>)

Tuple Fields

0: Option<u8>

SmallUnsigned(Option<u16>)

Tuple Fields

0: Option<u16>

Unsigned(Option<u32>)

Tuple Fields

0: Option<u32>

BigUnsigned(Option<u64>)

Tuple Fields

0: Option<u64>

Float(Option<f32>)

Tuple Fields

0: Option<f32>

Double(Option<f64>)

Tuple Fields

0: Option<f64>

String(Option<Box<String>>)

Tuple Fields

Bytes(Option<Box<Vec<u8>>>)

Tuple Fields

0: Option<Box<Vec<u8>>>

Json(Option<Box<Json>>)

Tuple Fields

This is supported on crate feature with-json only.

Date(Option<Box<NaiveDate>>)

Tuple Fields

This is supported on crate feature with-chrono only.

Time(Option<Box<NaiveTime>>)

Tuple Fields

This is supported on crate feature with-chrono only.

DateTime(Option<Box<NaiveDateTime>>)

Tuple Fields

This is supported on crate feature with-chrono only.

DateTimeWithTimeZone(Option<Box<DateTime<FixedOffset>>>)

Tuple Fields

This is supported on crate feature with-chrono only.

Uuid(Option<Box<Uuid>>)

Tuple Fields

This is supported on crate feature with-uuid only.

Decimal(Option<Box<Decimal>>)

Tuple Fields

This is supported on crate feature with-rust_decimal only.

BigDecimal(Option<Box<BigDecimal>>)

Tuple Fields

This is supported on crate feature with-bigdecimal only.

Implementations

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

Converts the value of self into the binary format of the specified Postgres Type, appending it to out. Read more

Determines if a value of this type can be converted to the specified Postgres Type. Read more

An adaptor method used internally by Rust-Postgres. Read more

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 a reference to self as a ToSql trait object.

Performs the conversion.

Performs the conversion.

Should always be Self

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.