pub enum Literal {
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
Timestamp(String),
Binary(String),
Hex(String),
}Expand description
A primitive literal value.
Variants§
String(String)
A single-quoted string literal.
Integer(i64)
An integer literal.
Float(f64)
A floating-point literal.
Boolean(bool)
A true/false literal.
Timestamp(String)
RFC3339 timestamp from a t'...' literal (kept as the inner string).
Binary(String)
Base64 payload from a b'...' literal (kept as the inner string).
Hex(String)
Hex payload from an h'...' literal (kept as the inner string).
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
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