pub struct FindFirstOperation<E: QueryEngine, M: Model> { /* private fields */ }Expand description
Implementations§
Source§impl<E: QueryEngine, M: Model> FindFirstOperation<E, M>
impl<E: QueryEngine, M: Model> FindFirstOperation<E, M>
Sourcepub fn build_sql(&self) -> (String, Vec<FilterValue>)
pub fn build_sql(&self) -> (String, Vec<FilterValue>)
Build the SQL query.
Sourcepub async fn exec(self) -> QueryResult<Option<M>>where
M: Send + 'static,
pub async fn exec(self) -> QueryResult<Option<M>>where
M: Send + 'static,
Execute the query and return an optional result.
Sourcepub async fn exec_required(self) -> QueryResult<M>where
M: Send + 'static,
pub async fn exec_required(self) -> QueryResult<M>where
M: Send + 'static,
Execute the query and error if not found.
Auto Trait Implementations§
impl<E, M> Freeze for FindFirstOperation<E, M>where
E: Freeze,
impl<E, M> RefUnwindSafe for FindFirstOperation<E, M>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<E, M> Send for FindFirstOperation<E, M>
impl<E, M> Sync for FindFirstOperation<E, M>
impl<E, M> Unpin for FindFirstOperation<E, M>
impl<E, M> UnwindSafe for FindFirstOperation<E, M>where
E: UnwindSafe,
M: UnwindSafe,
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