pub struct PrefetchRelatedQuery<M, R, Relation = (), Key = i64> { /* private fields */ }Implementations§
Source§impl<M, R, Relation, Key> PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> PrefetchRelatedQuery<M, R, Relation, Key>
pub fn filter(self, expr: Expr) -> Self
pub fn order_by(self, order: OrderBy) -> Self
pub fn limit(self, limit: u64) -> Self
pub fn offset(self, offset: u64) -> Self
pub async fn count(self, db: &Database) -> Result<usize, OrmError>
pub async fn all(
self,
db: &Database,
) -> Result<Vec<Loaded<M, (LoadedMany<R, Relation>,)>>, OrmError>where
Relation: Send + 'static,
Auto Trait Implementations§
impl<M, R, Relation, Key> Freeze for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> RefUnwindSafe for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> Send for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> Sync for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> Unpin for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> UnsafeUnpin for PrefetchRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> UnwindSafe for PrefetchRelatedQuery<M, R, Relation, Key>
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