pub struct SelectRelatedQuery<M, R, Relation = (), Key = i64> { /* private fields */ }Expand description
Query which materializes a model together with one related model.
Implementations§
Source§impl<M, R, Relation> SelectRelatedQuery<M, R, Relation, i64>
impl<M, R, Relation> SelectRelatedQuery<M, R, Relation, i64>
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 all(
self,
database: &Database,
) -> Result<Vec<WithOne<M, R, Relation>>, OrmError>where
Relation: Send + 'static,
pub async fn count(self, database: &Database) -> Result<usize, OrmError>
Source§impl<M, R, Relation> SelectRelatedQuery<M, R, Relation, Option<i64>>
impl<M, R, Relation> SelectRelatedQuery<M, R, Relation, Option<i64>>
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 all(
self,
database: &Database,
) -> Result<Vec<WithOptionalOne<M, R, Relation>>, OrmError>where
Relation: Send + 'static,
pub async fn count(self, database: &Database) -> Result<usize, OrmError>
Auto Trait Implementations§
impl<M, R, Relation, Key> Freeze for SelectRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> RefUnwindSafe for SelectRelatedQuery<M, R, Relation, Key>where
M: RefUnwindSafe,
impl<M, R, Relation, Key> Send for SelectRelatedQuery<M, R, Relation, Key>where
M: Send,
impl<M, R, Relation, Key> Sync for SelectRelatedQuery<M, R, Relation, Key>where
M: Sync,
impl<M, R, Relation, Key> Unpin for SelectRelatedQuery<M, R, Relation, Key>where
M: Unpin,
impl<M, R, Relation, Key> UnsafeUnpin for SelectRelatedQuery<M, R, Relation, Key>
impl<M, R, Relation, Key> UnwindSafe for SelectRelatedQuery<M, R, Relation, Key>where
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