pub enum LiteralValue {
Integer(i128),
Text(String),
Blob(Vec<u8>),
Boolean(bool),
Float(String),
Null,
}Variants§
Implementations§
Source§impl LiteralValue
impl LiteralValue
pub fn data_type(&self) -> SqlTypeName
pub fn is_compatible_with(&self, data_type: SqlTypeName) -> bool
pub fn is_null(&self) -> bool
Trait Implementations§
Source§impl Clone for LiteralValue
impl Clone for LiteralValue
Source§fn clone(&self) -> LiteralValue
fn clone(&self) -> LiteralValue
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 LiteralValue
impl Debug for LiteralValue
Source§impl PartialEq for LiteralValue
impl PartialEq for LiteralValue
Source§impl PartialOrd for LiteralValue
impl PartialOrd for LiteralValue
impl Eq for LiteralValue
Auto Trait Implementations§
impl Freeze for LiteralValue
impl RefUnwindSafe for LiteralValue
impl Send for LiteralValue
impl Sync for LiteralValue
impl Unpin for LiteralValue
impl UnsafeUnpin for LiteralValue
impl UnwindSafe for LiteralValue
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