pub struct Row {
pub columns: Vec<String>,
pub values: Vec<Value>,
}Expand description
One result row. Carries the column names (shared across the result) plus the per-cell JSON values.
Fields§
§columns: Vec<String>Column names, in the order the adapter emitted them.
values: Vec<Value>Per-cell values, parallel to columns.
Implementations§
Source§impl Row
impl Row
Sourcepub fn get<I: RowIndex, T: DeserializeOwned>(
&self,
index: I,
) -> Result<T, DactylError>
pub fn get<I: RowIndex, T: DeserializeOwned>( &self, index: I, ) -> Result<T, DactylError>
Extract named column value type-safely.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
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
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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