ScyllaDBArgument

Enum ScyllaDBArgument 

Source
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

Source§

fn serialize<'b>( &self, typ: &ColumnType<'_>, writer: CellWriter<'b>, ) -> Result<WrittenCellProof<'b>, SerializationError>

Serializes the value to given CQL type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,