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

Tuple Fields of Bool

0: Option<bool>
TinyInt

Tuple Fields of TinyInt

0: Option<i8>
SmallInt

Tuple Fields of SmallInt

0: Option<i16>
Int

Tuple Fields of Int

0: Option<i32>
BigInt

Tuple Fields of BigInt

0: Option<i64>
TinyUnsigned

Tuple Fields of TinyUnsigned

0: Option<u8>
SmallUnsigned

Tuple Fields of SmallUnsigned

0: Option<u16>
Unsigned

Tuple Fields of Unsigned

0: Option<u32>
BigUnsigned

Tuple Fields of BigUnsigned

0: Option<u64>
Float

Tuple Fields of Float

0: Option<f32>
Double

Tuple Fields of Double

0: Option<f64>
String

Tuple Fields of String

0: Option<Box<String>>
Bytes

Tuple Fields of Bytes

0: Option<Box<Vec<u8>>>
Json
This is supported on crate feature with-json only.

Tuple Fields of Json

0: Option<Box<Json>>
Date
This is supported on crate feature with-chrono only.

Tuple Fields of Date

0: Option<Box<NaiveDate>>
Time
This is supported on crate feature with-chrono only.

Tuple Fields of Time

0: Option<Box<NaiveTime>>
DateTime
This is supported on crate feature with-chrono only.

Tuple Fields of DateTime

0: Option<Box<NaiveDateTime>>
DateTimeWithTimeZone
This is supported on crate feature with-chrono only.

Tuple Fields of DateTimeWithTimeZone

0: Option<Box<DateTime<FixedOffset>>>
Uuid
This is supported on crate feature with-uuid only.

Tuple Fields of Uuid

0: Option<Box<Uuid>>
Decimal
This is supported on crate feature with-rust_decimal only.

Tuple Fields of Decimal

0: Option<Box<Decimal>>
BigDecimal
This is supported on crate feature with-bigdecimal only.

Tuple Fields of BigDecimal

0: Option<Box<BigDecimal>>

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.

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)

recently added

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.