pub enum ColumnType<'frame> {
Show 26 variants
Custom(Cow<'frame, str>),
Ascii,
Boolean,
Blob,
Counter,
Date,
Decimal,
Double,
Duration,
Float,
Int,
BigInt,
Text,
Timestamp,
Inet,
List(Box<ColumnType<'frame>>),
Map(Box<ColumnType<'frame>>, Box<ColumnType<'frame>>),
Set(Box<ColumnType<'frame>>),
UserDefinedType {
type_name: Cow<'frame, str>,
keyspace: Cow<'frame, str>,
field_types: Vec<(Cow<'frame, str>, ColumnType<'frame>)>,
},
SmallInt,
TinyInt,
Time,
Timeuuid,
Tuple(Vec<ColumnType<'frame>>),
Uuid,
Varint,
}
Variants§
Custom(Cow<'frame, str>)
Ascii
Boolean
Blob
Counter
Date
Decimal
Double
Duration
Float
Int
BigInt
Text
Timestamp
Inet
List(Box<ColumnType<'frame>>)
Map(Box<ColumnType<'frame>>, Box<ColumnType<'frame>>)
Set(Box<ColumnType<'frame>>)
UserDefinedType
Fields
§
field_types: Vec<(Cow<'frame, str>, ColumnType<'frame>)>
SmallInt
TinyInt
Time
Timeuuid
Tuple(Vec<ColumnType<'frame>>)
Uuid
Varint
Implementations§
Source§impl ColumnType<'_>
impl ColumnType<'_>
pub fn into_owned(self) -> ColumnType<'static>
Trait Implementations§
Source§impl<'frame> Clone for ColumnType<'frame>
impl<'frame> Clone for ColumnType<'frame>
Source§fn clone(&self) -> ColumnType<'frame>
fn clone(&self) -> ColumnType<'frame>
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<'frame> Debug for ColumnType<'frame>
impl<'frame> Debug for ColumnType<'frame>
Source§impl<'frame> PartialEq for ColumnType<'frame>
impl<'frame> PartialEq for ColumnType<'frame>
impl<'frame> Eq for ColumnType<'frame>
impl<'frame> StructuralPartialEq for ColumnType<'frame>
Auto Trait Implementations§
impl<'frame> Freeze for ColumnType<'frame>
impl<'frame> RefUnwindSafe for ColumnType<'frame>
impl<'frame> Send for ColumnType<'frame>
impl<'frame> Sync for ColumnType<'frame>
impl<'frame> Unpin for ColumnType<'frame>
impl<'frame> UnwindSafe for ColumnType<'frame>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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