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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryItem
impl RefUnwindSafe for QueryItem
impl Send for QueryItem
impl Sync for QueryItem
impl Unpin for QueryItem
impl UnwindSafe for QueryItem
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