pub enum SqlParam {
Null,
Bool(bool),
Int(i64),
Float(f64),
Text(String),
Bytes(Vec<u8>),
Json(Value),
Uuid(Uuid),
Timestamp(DateTime<Utc>),
Array(Vec<SqlParam>),
}Expand description
A SQL parameter value.
Variants§
Null
NULL value
Bool(bool)
Boolean
Int(i64)
64-bit integer
Float(f64)
64-bit float
Text(String)
Text string
Bytes(Vec<u8>)
Binary data
Json(Value)
JSON value
Uuid(Uuid)
UUID
Timestamp(DateTime<Utc>)
Timestamp
Array(Vec<SqlParam>)
Array of parameters
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqlParam
impl<'de> Deserialize<'de> for SqlParam
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 SqlParam
Auto Trait Implementations§
impl Freeze for SqlParam
impl RefUnwindSafe for SqlParam
impl Send for SqlParam
impl Sync for SqlParam
impl Unpin for SqlParam
impl UnwindSafe for SqlParam
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