pub struct Query<'a, T = Vec<Row>>(pub String, _, _);
Expand description
A struct for storing a complete query along with parameters and output type.
Depending on the output type, Executable
is implemented differently
to allow for easy parsing.
Tuple Fields§
§0: String
Implementations§
Trait Implementations§
Source§impl<'a, T> Executable for Query<'a, Option<T>>
impl<'a, T> Executable for Query<'a, Option<T>>
Source§impl<'a, T> Executable for Query<'a, Vec<T>>
impl<'a, T> Executable for Query<'a, Vec<T>>
Source§impl<'a> Executable for Query<'a, u64>
impl<'a> Executable for Query<'a, u64>
Source§impl<'a, T> IntoFuture for Query<'a, T>
Implement IntoFuture for Query so that any executable Query
may be executed by calling .await
.
impl<'a, T> IntoFuture for Query<'a, T>
Implement IntoFuture for Query so that any executable Query
may be executed by calling .await
.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Query<'a, T> as IntoFuture>::Output> + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <Query<'a, T> as IntoFuture>::Output> + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for Query<'a, T>
impl<'a, T = Vec<Row>> !RefUnwindSafe for Query<'a, T>
impl<'a, T> Send for Query<'a, T>where
T: Send,
impl<'a, T> Sync for Query<'a, T>where
T: Sync,
impl<'a, T> Unpin for Query<'a, T>where
T: Unpin,
impl<'a, T = Vec<Row>> !UnwindSafe for Query<'a, T>
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