pub struct Rows<T>(/* private fields */);Implementations§
Source§impl<T> Rows<T>
impl<T> Rows<T>
pub fn one(self) -> T
pub fn first(self) -> Option<T>
pub fn all(self) -> Vec<T>
pub fn stream(self) -> Stream<T>
pub fn order_by<F, U>(self, key: F) -> Selfwhere
F: FnOnce(T) -> U,
pub fn order_desc<F, U>(self, key: F) -> Selfwhere
F: FnOnce(T) -> U,
pub fn limit(self, count: i64) -> Self
pub fn offset(self, count: i64) -> Self
pub fn distinct(self) -> Self
pub fn select<F, R>(self, map: F) -> Select<R>where
F: FnOnce(T) -> R,
Auto Trait Implementations§
impl<T> Forget for Rows<T>
impl<T> Freeze for Rows<T>where
Never<T>: Freeze,
impl<T> RefUnwindSafe for Rows<T>where
Never<T>: RefUnwindSafe,
impl<T> Send for Rows<T>where
Never<T>: Send,
impl<T> Sync for Rows<T>where
Never<T>: Sync,
impl<T> Unpin for Rows<T>where
Never<T>: Unpin,
impl<T> UnsafeUnpin for Rows<T>where
Never<T>: UnsafeUnpin,
impl<T> UnwindSafe for Rows<T>where
Never<T>: 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