pub enum Literal {
Boolean(bool),
BigInt(i64),
Int128(i128),
VarChar(String),
Decimal(BigDecimal),
Timestamp(PoSQLTimestamp),
}
Expand description
Literal values
Variants§
Boolean(bool)
Boolean Literal
BigInt(i64)
i64 Literal
Int128(i128)
i128 Literal
VarChar(String)
String Literal
Decimal(BigDecimal)
Decimal Literal
Timestamp(PoSQLTimestamp)
Timestamp Literal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Literal
impl<'de> Deserialize<'de> for Literal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BigDecimal> for Literal
impl From<BigDecimal> for Literal
Source§fn from(val: BigDecimal) -> Self
fn from(val: BigDecimal) -> Self
Converts to this type from the input type.
Source§impl From<PoSQLTimestamp> for Literal
impl From<PoSQLTimestamp> for Literal
Source§fn from(time: PoSQLTimestamp) -> Self
fn from(time: PoSQLTimestamp) -> Self
Converts to this type from the input type.
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)