pub struct Find<'a, Q: ?Sized, M> { /* private fields */ }Implementations§
Source§impl<'a, Q: Queries + ?Sized, M: Model> Find<'a, Q, M>
impl<'a, Q: Queries + ?Sized, M: Model> Find<'a, Q, M>
pub fn order_by(self, (column, order): (&'static str, Order)) -> Self
pub fn limit(self, limit: u64) -> Self
pub fn offset(self, offset: u64) -> Self
pub async fn one(self) -> DbResult<Option<M>>
pub async fn all(self) -> DbResult<Vec<M>>
Sourcepub async fn one_row(self) -> DbResult<Option<Row>>
pub async fn one_row(self) -> DbResult<Option<Row>>
The raw row, including columns plugins added (decode them with Fields::decode).
pub async fn all_rows(self) -> DbResult<Vec<Row>>
Auto Trait Implementations§
impl<'a, Q, M> Forget for Find<'a, Q, M>where
Q: ?Sized,
impl<'a, Q, M> Freeze for Find<'a, Q, M>
impl<'a, Q, M> Move for Find<'a, Q, M>where
Q: ?Sized,
impl<'a, Q, M> RefUnwindSafe for Find<'a, Q, M>
impl<'a, Q, M> Send for Find<'a, Q, M>
impl<'a, Q, M> Sync for Find<'a, Q, M>
impl<'a, Q, M> Unpin for Find<'a, Q, M>
impl<'a, Q, M> UnsafeUnpin for Find<'a, Q, M>
impl<'a, Q, M> UnwindSafe for Find<'a, Q, M>
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