pub struct ResultSet {
pub results: Vec<CustomDbRow>,
pub rows_affected: usize,
}
Expand description
A result set from a database query
This struct represents the result of a database query, containing the rows returned by the query and metadata.
Fields§
§results: Vec<CustomDbRow>
The rows returned by the query
rows_affected: usize
The number of rows affected (for DML statements)
Implementations§
Source§impl ResultSet
impl ResultSet
Sourcepub fn with_capacity(capacity: usize) -> ResultSet
pub fn with_capacity(capacity: usize) -> ResultSet
Sourcepub fn add_row(&mut self, row: CustomDbRow)
pub fn add_row(&mut self, row: CustomDbRow)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultSet
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnwindSafe for ResultSet
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