pub enum QueryResult {
Rows(Vec<Row>),
Command(CommandResult),
}Expand description
Result of a single query within a pipeline.
Variants§
Rows(Vec<Row>)
Query returned rows.
Command(CommandResult)
Query returned a command result (INSERT/UPDATE/DELETE/etc).
Implementations§
Source§impl QueryResult
impl QueryResult
Sourcepub fn into_command(self) -> Result<CommandResult>
pub fn into_command(self) -> Result<CommandResult>
Get command result if this is a non-row query.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl UnwindSafe for QueryResult
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