#[non_exhaustive]pub enum RowValue {
List(Vec<RowValue>),
Null,
Bool(bool),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Text(String),
Bytes(Vec<u8>),
}Expand description
Dynamic result value. Unlike ScalarValue, this can represent SQL NULL.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
List(Vec<RowValue>)
Presentation-only list; never a PostgreSQL array bind or cursor key.
Null
Bool(bool)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Text(String)
Bytes(Vec<u8>)
Implementations§
Source§impl RowValue
impl RowValue
pub fn value_type(&self) -> Option<ValueType>
Sourcepub fn to_external_text(&self) -> String
pub fn to_external_text(&self) -> String
Canonical external text used by CSV’s default formatter. JSON uses compact JSON, bytes use unpadded base64url, and timestamps use RFC 3339.
Trait Implementations§
Source§impl From<ScalarValue> for RowValue
impl From<ScalarValue> for RowValue
Source§fn from(value: ScalarValue) -> Self
fn from(value: ScalarValue) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RowValue
Auto Trait Implementations§
impl Freeze for RowValue
impl RefUnwindSafe for RowValue
impl Send for RowValue
impl Sync for RowValue
impl Unpin for RowValue
impl UnsafeUnpin for RowValue
impl UnwindSafe for RowValue
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