pub enum ExpectedSqlResponse {
SingleRow,
ManyRows,
AffectedRows,
Pluck,
Batch,
}
Expand description
Expected response type for a given SQL statement
Variants§
SingleRow
A single row
ManyRows
All the rows that matches a query
AffectedRows
How many rows were affected by the query
Pluck
Return the first column of the first row
Batch
Batch
Trait Implementations§
Source§impl Clone for ExpectedSqlResponse
impl Clone for ExpectedSqlResponse
Source§fn clone(&self) -> ExpectedSqlResponse
fn clone(&self) -> ExpectedSqlResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExpectedSqlResponse
impl Debug for ExpectedSqlResponse
Source§impl Default for ExpectedSqlResponse
impl Default for ExpectedSqlResponse
Source§fn default() -> ExpectedSqlResponse
fn default() -> ExpectedSqlResponse
Returns the “default value” for a type. Read more
impl Copy for ExpectedSqlResponse
Auto Trait Implementations§
impl Freeze for ExpectedSqlResponse
impl RefUnwindSafe for ExpectedSqlResponse
impl Send for ExpectedSqlResponse
impl Sync for ExpectedSqlResponse
impl Unpin for ExpectedSqlResponse
impl UnwindSafe for ExpectedSqlResponse
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