ScyllaDBTypeInfo

Enum ScyllaDBTypeInfo 

Source
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

Source§

fn clone(&self) -> ScyllaDBTypeInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScyllaDBTypeInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for ScyllaDBTypeInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ScyllaDBTypeInfo

Source§

fn eq(&self, other: &ScyllaDBTypeInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TypeInfo for ScyllaDBTypeInfo

Source§

fn is_null(&self) -> bool

Source§

fn name(&self) -> &str

Returns the database system name of the type. Length specifiers should not be included. Common type names are 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) -> bool

Return true if self and other represent mutually compatible types. Read more
Source§

impl StructuralPartialEq for ScyllaDBTypeInfo

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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,