pub enum SqlValue {
Null,
Bool(bool),
I64(i64),
U64(u64),
F64(f64),
String(Cow<'static, str>),
Bytes(Vec<u8>),
DateTime(SqlDateTime),
}Expand description
SQL 参数值。
Variants§
Null
Bool(bool)
I64(i64)
U64(u64)
F64(f64)
String(Cow<'static, str>)
Bytes(Vec<u8>)
DateTime(SqlDateTime)
Implementations§
Trait Implementations§
Source§impl From<OffsetDateTime> for SqlValue
impl From<OffsetDateTime> for SqlValue
Source§fn from(v: OffsetDateTime) -> Self
fn from(v: OffsetDateTime) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SqlValue
Auto Trait Implementations§
impl Freeze for SqlValue
impl RefUnwindSafe for SqlValue
impl Send for SqlValue
impl Sync for SqlValue
impl Unpin for SqlValue
impl UnwindSafe for SqlValue
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