pub struct QueryResult {
pub rows: Vec<Row>,
pub affected: u64,
pub last_insert_id: Option<i64>,
}Expand description
What a statement returned.
Fields§
§rows: Vec<Row>§affected: u64Rows affected, as the database reported it.
last_insert_id: Option<i64>The key an insert generated, when the database volunteered one.
PostgreSQL and SQL Server return it as a row; MySQL reports it in the
packet that acknowledges the insert, with no row at all — which is why
this is separate from rows.
Trait Implementations§
Source§impl Debug for QueryResult
impl Debug for QueryResult
Source§impl Default for QueryResult
impl Default for QueryResult
Source§fn default() -> QueryResult
fn default() -> QueryResult
Returns the “default value” for a type. Read more
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