#[non_exhaustive]pub enum NativeType {
Show 20 variants
Ascii,
Boolean,
Blob,
Counter,
Date,
Decimal,
Double,
Duration,
Float,
Int,
BigInt,
Text,
Timestamp,
Inet,
SmallInt,
TinyInt,
Time,
Timeuuid,
Uuid,
Varint,
}
Expand description
A ColumnType variants that are “simple” (non-recursive).
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
ASCII-only string.
Boolean
Boolean value.
Blob
Binary data of any length.
Counter
Counter value, represented as a 64-bit integer.
Date
Days since -5877641-06-23 i.e. 2^31 days before unix epoch
Decimal
Variable-precision decimal.
Double
64-bit IEEE-754 floating point number.
Duration
A duration with nanosecond precision.
Float
32-bit IEEE-754 floating point number.
Int
32-bit signed integer.
BigInt
64-bit signed integer.
Text
UTF-8 encoded string.
Timestamp
Milliseconds since unix epoch.
Inet
IPv4 or IPv6 address.
SmallInt
16-bit signed integer.
TinyInt
8-bit signed integer.
Time
Nanoseconds since midnight.
Timeuuid
Version 1 UUID, generally used as a “conflict-free” timestamp.
Uuid
Universally unique identifier (UUID) of any version.
Varint
Arbitrary-precision integer.
Trait Implementations§
Source§impl Clone for NativeType
impl Clone for NativeType
Source§fn clone(&self) -> NativeType
fn clone(&self) -> NativeType
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 NativeType
impl Debug for NativeType
Source§impl PartialEq for NativeType
impl PartialEq for NativeType
impl Eq for NativeType
impl StructuralPartialEq for NativeType
Auto Trait Implementations§
impl Freeze for NativeType
impl RefUnwindSafe for NativeType
impl Send for NativeType
impl Sync for NativeType
impl Unpin for NativeType
impl UnwindSafe for NativeType
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