pub enum CqlValue {
Show 26 variants
Ascii(String),
Boolean(bool),
Blob(Vec<u8, Global>),
Counter(Counter),
Decimal(BigDecimal),
Date(u32),
Double(f64),
Duration(CqlDuration),
Empty,
Float(f32),
Int(i32),
BigInt(i64),
Text(String),
Timestamp(Duration),
Inet(IpAddr),
List(Vec<CqlValue, Global>),
Map(Vec<(CqlValue, CqlValue), Global>),
Set(Vec<CqlValue, Global>),
UserDefinedType {
keyspace: String,
type_name: String,
fields: Vec<(String, Option<CqlValue>), Global>,
},
SmallInt(i16),
TinyInt(i8),
Time(Duration),
Timeuuid(Uuid),
Tuple(Vec<Option<CqlValue>, Global>),
Uuid(Uuid),
Varint(BigInt),
}
Variants§
Ascii(String)
Boolean(bool)
Blob(Vec<u8, Global>)
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)
Duration(CqlDuration)
Empty
Float(f32)
Int(i32)
BigInt(i64)
Text(String)
Timestamp(Duration)
Milliseconds since unix epoch
Inet(IpAddr)
List(Vec<CqlValue, Global>)
Map(Vec<(CqlValue, CqlValue), Global>)
Set(Vec<CqlValue, Global>)
UserDefinedType
Fields
SmallInt(i16)
TinyInt(i8)
Time(Duration)
Nanoseconds since midnight