[][src]Enum prusto::types::PrestoTy

pub enum PrestoTy {
    Date,
    Time,
    Timestamp,
    Option(Box<PrestoTy>),
    Boolean,
    PrestoInt(PrestoInt),
    PrestoFloat(PrestoFloat),
    Varchar,
    Tuple(Vec<PrestoTy>),
    Row(Vec<(String, PrestoTy)>),
    Array(Box<PrestoTy>),
    Map(Box<PrestoTy>, Box<PrestoTy>),
    Decimal(usizeusize),
    Unknown,
}

Variants

Date
Time
Timestamp
Option(Box<PrestoTy>)
Boolean
PrestoInt(PrestoInt)
PrestoFloat(PrestoFloat)
Varchar
Tuple(Vec<PrestoTy>)
Array(Box<PrestoTy>)
Decimal(usizeusize)
Unknown

Implementations

impl PrestoTy[src]

pub fn from_type_signature(sig: TypeSignature) -> Result<Self, Error>[src]

pub fn from_column(column: Column) -> Result<(String, Self), Error>[src]

pub fn from_columns(columns: Vec<Column>) -> Result<Self, Error>[src]

pub fn into_type_signature(self) -> TypeSignature[src]

pub fn full_type(&self) -> Cow<'static, str>[src]

pub fn raw_type(&self) -> RawPrestoTy[src]

Trait Implementations

impl Clone for PrestoTy[src]

impl Debug for PrestoTy[src]

impl Eq for PrestoTy[src]

impl PartialEq<PrestoTy> for PrestoTy[src]

impl StructuralEq for PrestoTy[src]

impl StructuralPartialEq for PrestoTy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.