pub enum RowValue {
Bool(bool),
Int64(i64),
Uint64(u64),
Float64(f64),
String(String),
Bytes(Vec<u8>),
Uuid([u8; 16]),
Timestamp(i64),
None,
List(Vec<RowValue>),
Object(BTreeMap<String, RowValue>),
}Expand description
In-memory value for a row field (including nested structures).
Variants§
Bool(bool)
Int64(i64)
Uint64(u64)
Float64(f64)
String(String)
Bytes(Vec<u8>)
Uuid([u8; 16])
Timestamp(i64)
None
Absent Optional<T> (omitted key or explicit null).
List(Vec<RowValue>)
Object(BTreeMap<String, RowValue>)
Implementations§
Source§impl RowValue
impl RowValue
Sourcepub fn from_scalar(s: ScalarValue) -> Self
pub fn from_scalar(s: ScalarValue) -> Self
Convert a primitive ScalarValue to a row value (for PK and v1 interop).
Sourcepub fn as_scalar(&self) -> Option<ScalarValue>
pub fn as_scalar(&self) -> Option<ScalarValue>
If this row value is a primitive, return its scalar form (for PK encoding).
Sourcepub fn into_scalar(self) -> Result<ScalarValue, DbError>
pub fn into_scalar(self) -> Result<ScalarValue, DbError>
Require a primitive scalar (for get / PK lookup parameters).
Trait Implementations§
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