pub enum SqlValue {
}Variants§
Bool(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Uuid(Uuid)
DateTime(DateTime<Utc>)
Json(Value)
Decimal(Decimal)
Vector(Vec<f32>)
A Vector(n) field’s value (see docs/design/extensions.md
§6). Defined unconditionally — no pgvector dependency is
needed to hold a Vec<f32> — but only ever constructed by
generated code gated on the pgvector Cargo feature (#161’s
compile-time check), and only ever bound to a real column by
cratestack-sqlx’s own pgvector-gated encode path.
NullBool
NullInt
NullFloat
NullString
NullBytes
NullUuid
NullDateTime
NullJson
NullDecimal
NullVector
Trait Implementations§
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 UnsafeUnpin 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