pub struct ViewFindFirstOperation<E: QueryEngine, V: View> { /* private fields */ }Expand description
A query operation that finds a single record from a view.
Implementations§
Source§impl<E: QueryEngine, V: View> ViewFindFirstOperation<E, V>
impl<E: QueryEngine, V: View> ViewFindFirstOperation<E, V>
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<V>>where
V: Send + 'static + DeserializeOwned,
pub async fn exec(self) -> QueryResult<Option<V>>where
V: Send + 'static + DeserializeOwned,
Execute the query and return the first result.
Auto Trait Implementations§
impl<E, V> Freeze for ViewFindFirstOperation<E, V>where
E: Freeze,
impl<E, V> RefUnwindSafe for ViewFindFirstOperation<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, V> Send for ViewFindFirstOperation<E, V>
impl<E, V> Sync for ViewFindFirstOperation<E, V>
impl<E, V> Unpin for ViewFindFirstOperation<E, V>
impl<E, V> UnwindSafe for ViewFindFirstOperation<E, V>where
E: UnwindSafe,
V: 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