pub struct QueryResult {
pub rows: Vec<Value>,
pub columns: Vec<String>,
pub rows_affected: usize,
pub execution_time_ms: f64,
}Expand description
Query result returned by query()
Fields§
§rows: Vec<Value>Result rows (JSON objects)
columns: Vec<String>Column names (for SELECT queries)
rows_affected: usizeNumber of rows affected (for INSERT/UPDATE/DELETE)
execution_time_ms: f64Query execution time in milliseconds
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
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 moreAuto 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