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
impl ClickhousePgValue
pub fn as_bool(&self) -> Option<bool>
pub fn as_char(&self) -> Option<i8>
pub fn as_u8(&self) -> Option<u8>
pub fn as_i16(&self) -> Option<i16>
pub fn as_u16(&self) -> Option<u16>
pub fn as_i32(&self) -> Option<i32>
pub fn as_u32(&self) -> Option<u32>
pub fn as_i64(&self) -> Option<i64>
pub fn as_u64(&self) -> Option<Result<u64, ParseIntError>>
pub fn as_i128(&self) -> Option<Result<i128, ParseIntError>>
pub fn as_u128(&self) -> Option<Result<u128, ParseIntError>>
pub fn as_big_int(&self) -> Option<Result<BigInt, ParseBigIntError>>
pub fn as_big_uint(&self) -> Option<Result<BigUint, ParseBigIntError>>
pub fn as_f32(&self) -> Option<f32>
pub fn as_f64(&self) -> Option<f64>
pub fn as_str(&self) -> Option<&str>
pub fn as_naive_date(&self) -> Option<&NaiveDate>
pub fn as_big_decimal(&self) -> Option<&BigDecimal>
pub fn as_uuid(&self) -> Option<&Uuid>
pub fn as_naive_date_time( &self, ) -> Option<Result<NaiveDateTime, DatetimeParseError>>
pub fn as_ipv4_addr(&self) -> Option<Result<Ipv4Addr, AddrParseError>>
Trait Implementations§
Source§impl Clone for ClickhousePgValue
impl Clone for ClickhousePgValue
Source§fn clone(&self) -> ClickhousePgValue
fn clone(&self) -> ClickhousePgValue
Returns a duplicate 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 ClickhousePgValue
impl Debug for ClickhousePgValue
Source§impl From<&str> for ClickhousePgValue
impl From<&str> for ClickhousePgValue
Source§impl From<BigDecimal> for ClickhousePgValue
Available on crate feature bigdecimal only.
impl From<BigDecimal> for ClickhousePgValue
Available on crate feature
bigdecimal only.Source§fn from(val: BigDecimal) -> Self
fn from(val: BigDecimal) -> Self
Converts to this type from the input type.
Source§impl From<NaiveDate> for ClickhousePgValue
Available on crate feature chrono only.
impl From<NaiveDate> for ClickhousePgValue
Available on crate feature
chrono only.Source§impl From<String> for ClickhousePgValue
impl From<String> for ClickhousePgValue
Source§impl From<Uuid> for ClickhousePgValue
Available on crate feature uuid only.
impl From<Uuid> for ClickhousePgValue
Available on crate feature
uuid only.Source§impl From<bool> for ClickhousePgValue
impl From<bool> for ClickhousePgValue
Source§impl From<f32> for ClickhousePgValue
impl From<f32> for ClickhousePgValue
Source§impl From<f64> for ClickhousePgValue
impl From<f64> for ClickhousePgValue
Source§impl From<i16> for ClickhousePgValue
impl From<i16> for ClickhousePgValue
Source§impl From<i32> for ClickhousePgValue
impl From<i32> for ClickhousePgValue
Source§impl From<i64> for ClickhousePgValue
impl From<i64> for ClickhousePgValue
Source§impl From<i8> for ClickhousePgValue
impl From<i8> for ClickhousePgValue
Source§impl From<u16> for ClickhousePgValue
impl From<u16> for ClickhousePgValue
Source§impl From<u32> for ClickhousePgValue
impl From<u32> for ClickhousePgValue
Source§impl From<u8> for ClickhousePgValue
impl From<u8> for ClickhousePgValue
Source§impl PartialEq for ClickhousePgValue
impl PartialEq for ClickhousePgValue
impl StructuralPartialEq for ClickhousePgValue
Auto Trait Implementations§
impl Freeze for ClickhousePgValue
impl RefUnwindSafe for ClickhousePgValue
impl Send for ClickhousePgValue
impl Sync for ClickhousePgValue
impl Unpin for ClickhousePgValue
impl UnwindSafe for ClickhousePgValue
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<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