pub struct Query<'a, O: From<Row>> {
pub code: &'static str,
pub vals: &'a [&'a (dyn ToSql + Sync)],
/* private fields */
}
Expand description
The base type that is returned by the SQL query macros.
It is not intended for this type to be created manually.
Fields§
§code: &'static str
The SQL code with placeholders in the form of $1
, $2
, etc
vals: &'a [&'a (dyn ToSql + Sync)]
The values being injected into the prepared statement
Implementations§
Auto Trait Implementations§
impl<'a, O> Freeze for Query<'a, O>
impl<'a, O> !RefUnwindSafe for Query<'a, O>
impl<'a, O> Send for Query<'a, O>where
O: Send,
impl<'a, O> Sync for Query<'a, O>where
O: Sync,
impl<'a, O> Unpin for Query<'a, O>where
O: Unpin,
impl<'a, O> !UnwindSafe for Query<'a, O>
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