pub struct QueryRow {
pub values: HashMap<String, Value>,
pub key: RowKey,
pub metadata: RowMetadata,
}Expand description
Individual row in query result
Fields§
§values: HashMap<String, Value>Column values mapped by column name
key: RowKeyOriginal row key
metadata: RowMetadataRow metadata
Implementations§
Source§impl QueryRow
impl QueryRow
Sourcepub fn with_values(key: RowKey, values: HashMap<String, Value>) -> Self
pub fn with_values(key: RowKey, values: HashMap<String, Value>) -> Self
Create a row with values
Sourcepub fn column_names(&self) -> Vec<String>
pub fn column_names(&self) -> Vec<String>
Get all column names
Sourcepub fn metadata(&self) -> &RowMetadata
pub fn metadata(&self) -> &RowMetadata
Get row metadata
Sourcepub fn set_metadata(&mut self, metadata: RowMetadata)
pub fn set_metadata(&mut self, metadata: RowMetadata)
Set row metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryRow
impl<'de> Deserialize<'de> for QueryRow
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 QueryRow
impl RefUnwindSafe for QueryRow
impl Send for QueryRow
impl Sync for QueryRow
impl Unpin for QueryRow
impl UnsafeUnpin for QueryRow
impl UnwindSafe for QueryRow
Blanket Implementations§
impl<T> Allocation for T
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