pub enum ScyllaDBArgument {
Show 47 variants
Null,
Any(Arc<dyn SerializeValue + Send + Sync>),
Boolean(bool),
BooleanArray(Arc<Vec<bool>>),
TinyInt(i8),
TinyIntArray(Arc<Vec<i8>>),
SmallInt(i16),
SmallIntArray(Arc<Vec<i16>>),
Int(i32),
IntArray(Arc<Vec<i32>>),
BigInt(i64),
BigIntArray(Arc<Vec<i64>>),
Float(f32),
FloatArray(Arc<Vec<f32>>),
Double(f64),
DoubleArray(Arc<Vec<f64>>),
Text(Arc<String>),
TextArray(Arc<Vec<String>>),
Blob(Arc<Vec<u8>>),
BlobArray(Arc<Vec<Vec<u8>>>),
Uuid(Uuid),
UuidArray(Arc<Vec<Uuid>>),
Timeuuid(CqlTimeuuid),
TimeuuidArray(Arc<Vec<CqlTimeuuid>>),
IpAddr(IpAddr),
IpAddrArray(Arc<Vec<IpAddr>>),
Duration(CqlDuration),
DurationArray(Arc<Vec<CqlDuration>>),
CqlTimestamp(CqlTimestamp),
CqlTimestampArray(Arc<Vec<CqlTimestamp>>),
CqlDate(CqlDate),
CqlDateArray(Arc<Vec<CqlDate>>),
CqlTime(CqlTime),
CqlTimeArray(Arc<Vec<CqlTime>>),
Tuple(Arc<dyn SerializeValue + Send + Sync>),
UserDefinedType(Arc<dyn SerializeValue + Send + Sync>),
UserDefinedTypeArray(Arc<dyn SerializeValue + Send + Sync>),
TextTextMap(Arc<HashMap<String, String>>),
TextBooleanMap(Arc<HashMap<String, bool>>),
TextTinyIntMap(Arc<HashMap<String, i8>>),
TextSmallIntMap(Arc<HashMap<String, i16>>),
TextIntMap(Arc<HashMap<String, i32>>),
TextBigIntMap(Arc<HashMap<String, i64>>),
TextFloatMap(Arc<HashMap<String, f32>>),
TextDoubleMap(Arc<HashMap<String, f64>>),
TextUuidMap(Arc<HashMap<String, Uuid>>),
TextIpAddrMap(Arc<HashMap<String, IpAddr>>),
}
Expand description
The enum of data types that can be handled by scylla-rust-driver.
Variants§
Null
Internally used NULL.
Any(Arc<dyn SerializeValue + Send + Sync>)
Any type can be used.
Boolean(bool)
boolean
type.
BooleanArray(Arc<Vec<bool>>)
array of boolean
type.
TinyInt(i8)
tinyint
type.
TinyIntArray(Arc<Vec<i8>>)
array of tinyint
type.
SmallInt(i16)
smallint
type.
SmallIntArray(Arc<Vec<i16>>)
array of smallint
type
Int(i32)
int
type.
IntArray(Arc<Vec<i32>>)
array of int
type.
BigInt(i64)
bigint
type.
BigIntArray(Arc<Vec<i64>>)
array of bigint
type.
Float(f32)
float
type.
FloatArray(Arc<Vec<f32>>)
array of float
type.
Double(f64)
double
type.
DoubleArray(Arc<Vec<f64>>)
array of double
type.
Text(Arc<String>)
text
or ascii
type.
TextArray(Arc<Vec<String>>)
array of text
or ascii
type.
Blob(Arc<Vec<u8>>)
blob
type.
BlobArray(Arc<Vec<Vec<u8>>>)
array of blob
type.
Uuid(Uuid)
uuid
type.
UuidArray(Arc<Vec<Uuid>>)
array of uuid
type.
Timeuuid(CqlTimeuuid)
timeuuid
type.
TimeuuidArray(Arc<Vec<CqlTimeuuid>>)
array of timeuuid
type.
IpAddr(IpAddr)
inet
type.
IpAddrArray(Arc<Vec<IpAddr>>)
array of inet
type.
Duration(CqlDuration)
duration
type.
DurationArray(Arc<Vec<CqlDuration>>)
array of duration
type.
CqlTimestamp(CqlTimestamp)
timestamp
type.
CqlTimestampArray(Arc<Vec<CqlTimestamp>>)
array of timestamp
type.
CqlDate(CqlDate)
date
type.
CqlDateArray(Arc<Vec<CqlDate>>)
array of date
type.
CqlTime(CqlTime)
time
type.
CqlTimeArray(Arc<Vec<CqlTime>>)
array of time
type.
Tuple(Arc<dyn SerializeValue + Send + Sync>)
any tuple type.
UserDefinedType(Arc<dyn SerializeValue + Send + Sync>)
user-defined type.
UserDefinedTypeArray(Arc<dyn SerializeValue + Send + Sync>)
array of user-defined type.
TextTextMap(Arc<HashMap<String, String>>)
map type for text
and text
.
TextBooleanMap(Arc<HashMap<String, bool>>)
map type for text
and boolean
.
TextTinyIntMap(Arc<HashMap<String, i8>>)
map type for text
and tinyint
.
TextSmallIntMap(Arc<HashMap<String, i16>>)
map type for text
and smallint
.
TextIntMap(Arc<HashMap<String, i32>>)
map type for text
and int
.
TextBigIntMap(Arc<HashMap<String, i64>>)
map type for text
and bigint
.
TextFloatMap(Arc<HashMap<String, f32>>)
map type for text
and float
.
TextDoubleMap(Arc<HashMap<String, f64>>)
map type for text
and double
.
TextUuidMap(Arc<HashMap<String, Uuid>>)
map type for text
and uuid
.
TextIpAddrMap(Arc<HashMap<String, IpAddr>>)
map type for text
and inet
.
Trait Implementations§
Source§impl SerializeValue for ScyllaDBArgument
impl SerializeValue for ScyllaDBArgument
Source§fn serialize<'b>(
&self,
typ: &ColumnType<'_>,
writer: CellWriter<'b>,
) -> Result<WrittenCellProof<'b>, SerializationError>
fn serialize<'b>( &self, typ: &ColumnType<'_>, writer: CellWriter<'b>, ) -> Result<WrittenCellProof<'b>, SerializationError>
Auto Trait Implementations§
impl Freeze for ScyllaDBArgument
impl !RefUnwindSafe for ScyllaDBArgument
impl Send for ScyllaDBArgument
impl Sync for ScyllaDBArgument
impl Unpin for ScyllaDBArgument
impl !UnwindSafe for ScyllaDBArgument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more