pub enum Literal {
Integer(i128),
Float(String),
String(String),
Boolean(bool),
Null,
}Expand description
A literal value, before conversion to a column type.
Variants§
Integer(i128)
An integer, with its sign applied.
Float(String)
A decimal number as written ([-]digits.digits).
String(String)
The content of a single-quoted string.
Boolean(bool)
TRUE or FALSE
Null
NULL
Trait Implementations§
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 UnsafeUnpin 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