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

pub enum CqlValue {
Show variants Ascii(String), Boolean(bool), Blob(Vec<u8>), Counter(Counter), Decimal(BigDecimal), Date(u32), Double(f64), 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: BTreeMap<String, Option<CqlValue>>, }, SmallInt(i16), TinyInt(i8), Time(Duration), Timeuuid(Uuid), Tuple(Vec<CqlValue>), Uuid(Uuid), Varint(BigInt),
}

Variants

Ascii(String)
Boolean(bool)
Blob(Vec<u8>)
Counter(Counter)
Decimal(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

Double(f64)
Float(f32)
Int(i32)
BigInt(i64)
Text(String)
Timestamp(Duration)

Milliseconds since unix epoch

Inet(IpAddr)
List(Vec<CqlValue>)
UserDefinedType
Show fields

Fields of UserDefinedType

keyspace: Stringtype_name: Stringfields: BTreeMap<String, Option<CqlValue>>
SmallInt(i16)
TinyInt(i8)
Time(Duration)

Nanoseconds since midnight

Timeuuid(Uuid)
Tuple(Vec<CqlValue>)
Uuid(Uuid)
Varint(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.