Enum scylla::frame::response::result::CqlValue[][src]

pub enum CqlValue {
Show 25 variants Ascii(String), Boolean(bool), Blob(Vec<u8>), Counter(Counter), Decimal(BigDecimal), Date(u32), Double(f64), Empty, Float(f32), Int(i32), BigInt(i64), Text(String), Timestamp(Duration), Inet(IpAddr), List(Vec<CqlValue>), Map(Vec<(CqlValue, CqlValue)>), Set(Vec<CqlValue>), UserDefinedType { keyspace: String, type_name: String, fields: Vec<(String, Option<CqlValue>)>, }, SmallInt(i16), TinyInt(i8), Time(Duration), Timeuuid(Uuid), Tuple(Vec<Option<CqlValue>>), Uuid(Uuid), Varint(BigInt),
}

Variants

Ascii(String)

Tuple Fields of Ascii

0: String
Boolean(bool)

Tuple Fields of Boolean

0: bool
Blob(Vec<u8>)

Tuple Fields of Blob

0: Vec<u8>
Counter(Counter)

Tuple Fields of Counter

0: Counter
Decimal(BigDecimal)

Tuple Fields of Decimal

0: BigDecimal
Date(u32)

Days since -5877641-06-23 i.e. 2^31 days before unix epoch Can be converted to chrono::NaiveDate (-262145-1-1 to 262143-12-31) using as_date

Tuple Fields of Date

0: u32
Double(f64)

Tuple Fields of Double

0: f64
Empty
Float(f32)

Tuple Fields of Float

0: f32
Int(i32)

Tuple Fields of Int

0: i32
BigInt(i64)

Tuple Fields of BigInt

0: i64
Text(String)

Tuple Fields of Text

0: String
Timestamp(Duration)

Milliseconds since unix epoch

Tuple Fields of Timestamp

0: Duration
Inet(IpAddr)

Tuple Fields of Inet

0: IpAddr
List(Vec<CqlValue>)

Tuple Fields of List

0: Vec<CqlValue>

Tuple Fields of Map

0: Vec<(CqlValue, CqlValue)>

Tuple Fields of Set

0: Vec<CqlValue>
UserDefinedType

Fields of UserDefinedType

keyspace: Stringtype_name: Stringfields: Vec<(String, Option<CqlValue>)>

Order of fields vector must match the order of fields as defined in the UDT. The driver does not check it by itself, so incorrect data will be written if the order is wrong.

SmallInt(i16)

Tuple Fields of SmallInt

0: i16
TinyInt(i8)

Tuple Fields of TinyInt

0: i8
Time(Duration)

Nanoseconds since midnight

Tuple Fields of Time

0: Duration
Timeuuid(Uuid)

Tuple Fields of Timeuuid

0: Uuid

Tuple Fields of Tuple

0: Vec<Option<CqlValue>>
Uuid(Uuid)

Tuple Fields of Uuid

0: Uuid
Varint(BigInt)

Tuple Fields of Varint

0: BigInt

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more