pub enum Literal {
Bool(bool),
Null,
Integer(i64),
UnsignedInteger(u64),
FixedPoint(Real),
String(String),
Blob(Vec<u8>),
CurrentTime,
CurrentDate,
CurrentTimestamp,
Placeholder(ItemPlaceholder),
}
Variants§
Bool(bool)
Null
Integer(i64)
UnsignedInteger(u64)
FixedPoint(Real)
String(String)
Blob(Vec<u8>)
CurrentTime
CurrentDate
CurrentTimestamp
Placeholder(ItemPlaceholder)
Implementations§
Source§impl Literal
impl Literal
pub fn integer_literal(i: &str) -> IResult<&str, Literal, ParseSQLError<&str>>
pub fn float_literal(i: &str) -> IResult<&str, Literal, ParseSQLError<&str>>
pub fn string_literal(i: &str) -> IResult<&str, Literal, ParseSQLError<&str>>
pub fn parse(i: &str) -> IResult<&str, Literal, ParseSQLError<&str>>
pub fn value_list(i: &str) -> IResult<&str, Vec<Literal>, ParseSQLError<&str>>
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<Literal> for LiteralExpression
impl From<Literal> for LiteralExpression
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