pub enum StatementValue {
Text {
value: String,
},
Integer {
value: i64,
},
Float {
value: f64,
},
Bool {
value: bool,
},
UnixNanos {
value: u64,
},
Blob {
value: Vec<u8>,
},
}Expand description
A literal on the object side of a statement. Internally tagged by type,
with snake_case tag values: {"type": "text", "value": "…"}.
Variants§
Trait Implementations§
Source§impl Clone for StatementValue
impl Clone for StatementValue
Source§impl Debug for StatementValue
impl Debug for StatementValue
Source§impl<'de> Deserialize<'de> for StatementValue
impl<'de> Deserialize<'de> for StatementValue
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
Auto Trait Implementations§
impl Freeze for StatementValue
impl RefUnwindSafe for StatementValue
impl Send for StatementValue
impl Sync for StatementValue
impl Unpin for StatementValue
impl UnsafeUnpin for StatementValue
impl UnwindSafe for StatementValue
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