pub struct QueryAndParams {
pub query: String,
pub params: Vec<RowValues>,
}
Expand description
A query and its parameters bundled together
This type makes it easier to pass around a SQL query and its parameters as a single unit.
Fields§
§query: String
The SQL query string
params: Vec<RowValues>
The parameters to be bound to the query
Implementations§
Trait Implementations§
Source§impl Clone for QueryAndParams
impl Clone for QueryAndParams
Source§fn clone(&self) -> QueryAndParams
fn clone(&self) -> QueryAndParams
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 QueryAndParams
impl RefUnwindSafe for QueryAndParams
impl Send for QueryAndParams
impl Sync for QueryAndParams
impl Unpin for QueryAndParams
impl UnwindSafe for QueryAndParams
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