pub enum ClickhousePgValue {
    Bool(bool),
    Char(i8),
    I16(i16),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
    String(String),
    NaiveDate(NaiveDate),
    BigDecimal(BigDecimal),
    Uuid(Uuid),
}

Variants§

§

Bool(bool)

§

Char(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

F32(f32)

§

F64(f64)

§

String(String)

§

NaiveDate(NaiveDate)

§

BigDecimal(BigDecimal)

§

Uuid(Uuid)

Implementations§

source§

impl ClickhousePgValue

source

pub fn as_bool(&self) -> Option<bool>

source

pub fn as_char(&self) -> Option<i8>

source

pub fn as_u8(&self) -> Option<u8>

source

pub fn as_i16(&self) -> Option<i16>

source

pub fn as_u16(&self) -> Option<u16>

source

pub fn as_i32(&self) -> Option<i32>

source

pub fn as_u32(&self) -> Option<u32>

source

pub fn as_i64(&self) -> Option<i64>

source

pub fn as_u64(&self) -> Option<Result<u64, ParseIntError>>

source

pub fn as_i128(&self) -> Option<Result<i128, ParseIntError>>

source

pub fn as_u128(&self) -> Option<Result<u128, ParseIntError>>

source

pub fn as_big_int(&self) -> Option<Result<BigInt, ParseBigIntError>>

source

pub fn as_big_uint(&self) -> Option<Result<BigUint, ParseBigIntError>>

source

pub fn as_f32(&self) -> Option<f32>

source

pub fn as_f64(&self) -> Option<f64>

source

pub fn as_str(&self) -> Option<&str>

source

pub fn as_naive_date(&self) -> Option<&NaiveDate>

source

pub fn as_big_decimal(&self) -> Option<&BigDecimal>

source

pub fn as_uuid(&self) -> Option<&Uuid>

source

pub fn as_naive_date_time( &self ) -> Option<Result<NaiveDateTime, DatetimeParseError>>

source

pub fn as_ipv4_addr(&self) -> Option<Result<Ipv4Addr, AddrParseError>>

Trait Implementations§

source§

impl Clone for ClickhousePgValue

source§

fn clone(&self) -> ClickhousePgValue

Returns a copy 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 ClickhousePgValue

source§

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

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

impl From<&str> for ClickhousePgValue

source§

fn from(val: &str) -> Self

Converts to this type from the input type.
source§

impl From<BigDecimal> for ClickhousePgValue

source§

fn from(val: BigDecimal) -> Self

Converts to this type from the input type.
source§

impl From<NaiveDate> for ClickhousePgValue

source§

fn from(val: NaiveDate) -> Self

Converts to this type from the input type.
source§

impl From<String> for ClickhousePgValue

source§

fn from(val: String) -> Self

Converts to this type from the input type.
source§

impl From<Uuid> for ClickhousePgValue

source§

fn from(val: Uuid) -> Self

Converts to this type from the input type.
source§

impl From<bool> for ClickhousePgValue

source§

fn from(val: bool) -> Self

Converts to this type from the input type.
source§

impl From<f32> for ClickhousePgValue

source§

fn from(val: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for ClickhousePgValue

source§

fn from(val: f64) -> Self

Converts to this type from the input type.
source§

impl From<i16> for ClickhousePgValue

source§

fn from(val: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for ClickhousePgValue

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for ClickhousePgValue

source§

fn from(val: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for ClickhousePgValue

source§

fn from(val: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for ClickhousePgValue

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for ClickhousePgValue

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl From<u8> for ClickhousePgValue

source§

fn from(val: u8) -> Self

Converts to this type from the input type.
source§

impl PartialEq<ClickhousePgValue> for ClickhousePgValue

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ClickhousePgValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V