#[non_exhaustive]pub enum CassandraType {
Show 26 variants
Ascii(String),
Bigint(i64),
Blob(Blob),
Boolean(bool),
Counter(i64),
Decimal(Decimal),
Double(f64),
Float(f32),
Int(i32),
Timestamp(i64),
Uuid(Uuid),
Varchar(String),
Varint(BigInt),
Timeuuid(Uuid),
Inet(IpAddr),
Date(i32),
Time(i64),
Smallint(i16),
Tinyint(i8),
Duration(Duration),
List(Vec<CassandraType>),
Map(Vec<(CassandraType, CassandraType)>),
Set(Vec<CassandraType>),
Udt(HashMap<String, CassandraType>),
Tuple(Vec<CassandraType>),
Null,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ascii(String)
Bigint(i64)
Blob(Blob)
Boolean(bool)
Counter(i64)
Decimal(Decimal)
Double(f64)
Float(f32)
Int(i32)
Timestamp(i64)
Uuid(Uuid)
Varchar(String)
Varint(BigInt)
Timeuuid(Uuid)
Inet(IpAddr)
Date(i32)
Time(i64)
Smallint(i16)
Tinyint(i8)
Duration(Duration)
List(Vec<CassandraType>)
Map(Vec<(CassandraType, CassandraType)>)
Set(Vec<CassandraType>)
Udt(HashMap<String, CassandraType>)
Tuple(Vec<CassandraType>)
Null
Trait Implementations§
source§impl Clone for CassandraType
impl Clone for CassandraType
source§fn clone(&self) -> CassandraType
fn clone(&self) -> CassandraType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CassandraType
impl Debug for CassandraType
source§impl PartialEq for CassandraType
impl PartialEq for CassandraType
source§fn eq(&self, other: &CassandraType) -> bool
fn eq(&self, other: &CassandraType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CassandraType
Auto Trait Implementations§
impl Freeze for CassandraType
impl RefUnwindSafe for CassandraType
impl Send for CassandraType
impl Sync for CassandraType
impl Unpin for CassandraType
impl UnwindSafe for CassandraType
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
Mutably borrows from an owned value. Read more
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>
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 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>
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