pub enum ScyllaDBTypeInfo {
Show 67 variants
Any(UStr),
Ascii,
AsciiArray,
Boolean,
BooleanArray,
Blob,
BlobArray,
Counter,
Decimal,
DecimalArray,
Date,
DateArray,
Double,
DoubleArray,
Duration,
DurationArray,
Null,
Float,
FloatArray,
Int,
IntArray,
BigInt,
BigIntArray,
Text,
TextArray,
Timestamp,
TimestampArray,
Inet,
InetArray,
SmallInt,
SmallIntArray,
TinyInt,
TinyIntArray,
Time,
TimeArray,
Timeuuid,
TimeuuidArray,
Uuid,
UuidArray,
Variant,
Tuple(UStr),
UserDefinedType(UStr),
UserDefinedTypeArray(UStr),
AsciiAsciiMap,
AsciiTextMap,
AsciiBooleanMap,
AsciiTinyIntMap,
AsciiSmallIntMap,
AsciiIntMap,
AsciiBigIntMap,
AsciiFloatMap,
AsciiDoubleMap,
AsciiUuidMap,
AsciiTimeuuidMap,
AsciiInetMap,
TextAsciiMap,
TextTextMap,
TextBooleanMap,
TextTinyIntMap,
TextSmallIntMap,
TextIntMap,
TextBigIntMap,
TextFloatMap,
TextDoubleMap,
TextUuidMap,
TextTimeuuidMap,
TextInetMap,
}
Expand description
The enum for the supported type.
Variants§
Any(UStr)
Any type. Please set a unique name.
Ascii
ascii
type.
AsciiArray
array of ascii
type.
Boolean
boolean
type.
BooleanArray
array of boolean
type.
Blob
blob
type.
BlobArray
array of blob
type.
Counter
counter
type.
Decimal
decimal
type.
DecimalArray
array of decimal
type.
Date
date
type.
DateArray
array of date
type.
Double
double
type.
DoubleArray
array of double
type.
Duration
duration
type.
DurationArray
array of duration
type.
Null
NULL type.
Float
float
type.
FloatArray
array of float
type.
Int
int
type.
IntArray
array of int
type.
BigInt
bigint
type.
BigIntArray
array of bigint
type.
Text
text
type.
TextArray
array of text
type.
Timestamp
timestamp
type.
TimestampArray
array of timestamp
type.
Inet
inet
type.
InetArray
array of inet
type.
SmallInt
smallint
type.
SmallIntArray
array of smallint
type.
TinyInt
tinyint
type.
TinyIntArray
array of tinyint
type.
Time
time
type.
TimeArray
array of time
type.
Timeuuid
timeuuid
type.
TimeuuidArray
array of timeuuid
type.
Uuid
uuid
type.
UuidArray
array of uuid
type.
Variant
variant
type.
Tuple(UStr)
Any tuple type.
UserDefinedType(UStr)
user-defined type.
UserDefinedTypeArray(UStr)
array of user-defined type.
AsciiAsciiMap
map type of ascii
and ascii
.
AsciiTextMap
map type of ascii
and text
.
AsciiBooleanMap
map type of ascii
and boolean
.
AsciiTinyIntMap
map type of ascii
and tinyint
.
AsciiSmallIntMap
map type of ascii
and smallint
.
AsciiIntMap
map type of ascii
and int
.
AsciiBigIntMap
map type of ascii
and bigint
.
AsciiFloatMap
map type of ascii
and float
.
AsciiDoubleMap
map type of ascii
and double
.
AsciiUuidMap
map type of ascii
and uuid
.
AsciiTimeuuidMap
map type of ascii
and timeuuid
.
AsciiInetMap
map type of ascii
and inet
.
TextAsciiMap
map type of text
and ascii
.
TextTextMap
map type of text
and text
.
TextBooleanMap
map type of text
and boolean
.
TextTinyIntMap
map type of text
and tinyint
.
TextSmallIntMap
map type of text
and smallint
.
TextIntMap
map type of text
and int
.
TextBigIntMap
map type of text
and bigint
.
TextFloatMap
map type of text
and float
.
TextDoubleMap
map type of text
and double
.
TextUuidMap
map type of text
and uuid
.
TextTimeuuidMap
map type of text
and timeuuid
.
TextInetMap
map type of text
and inet
.
Trait Implementations§
Source§impl Clone for ScyllaDBTypeInfo
impl Clone for ScyllaDBTypeInfo
Source§fn clone(&self) -> ScyllaDBTypeInfo
fn clone(&self) -> ScyllaDBTypeInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScyllaDBTypeInfo
impl Debug for ScyllaDBTypeInfo
Source§impl Display for ScyllaDBTypeInfo
impl Display for ScyllaDBTypeInfo
Source§impl PartialEq for ScyllaDBTypeInfo
impl PartialEq for ScyllaDBTypeInfo
Source§impl TypeInfo for ScyllaDBTypeInfo
impl TypeInfo for ScyllaDBTypeInfo
fn is_null(&self) -> bool
Source§fn name(&self) -> &str
fn name(&self) -> &str
VARCHAR
, TEXT
, or INT
. Type names should be uppercase. They
should be a rough approximation of how they are written in SQL in the given database.Source§fn type_compatible(&self, other: &ScyllaDBTypeInfo) -> boolwhere
ScyllaDBTypeInfo: Sized,
fn type_compatible(&self, other: &ScyllaDBTypeInfo) -> boolwhere
ScyllaDBTypeInfo: Sized,
impl StructuralPartialEq for ScyllaDBTypeInfo
Auto Trait Implementations§
impl Freeze for ScyllaDBTypeInfo
impl RefUnwindSafe for ScyllaDBTypeInfo
impl Send for ScyllaDBTypeInfo
impl Sync for ScyllaDBTypeInfo
impl Unpin for ScyllaDBTypeInfo
impl UnwindSafe for ScyllaDBTypeInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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