pub enum QueryItem {
Row(Row),
Metadata(ResultMetadata),
}
Expand description
Resulting data from a query.
Variants§
Implementations§
source§impl QueryItem
impl QueryItem
sourcepub fn as_metadata(&self) -> Option<&ResultMetadata>
pub fn as_metadata(&self) -> Option<&ResultMetadata>
Returns a reference to the metadata, if the item is of a correct variant.
sourcepub fn as_row(&self) -> Option<&Row>
pub fn as_row(&self) -> Option<&Row>
Returns a reference to the row, if the item is of a correct variant.
sourcepub fn into_metadata(self) -> Option<ResultMetadata>
pub fn into_metadata(self) -> Option<ResultMetadata>
Returns the metadata, if the item is of a correct variant.