pub struct IncludeRelation {
pub where_: Option<Expr>,
}Expand description
Arguments for eagerly loading a single relation in a query.
include: { posts: { where: { published: true } } }Fields§
§where_: Option<Expr>Optional filter to apply to the included child records.
Implementations§
Source§impl IncludeRelation
impl IncludeRelation
Sourcepub fn with_filter(filter: Expr) -> Self
pub fn with_filter(filter: Expr) -> Self
Create an include with a child filter.
Trait Implementations§
Source§impl Clone for IncludeRelation
impl Clone for IncludeRelation
Source§fn clone(&self) -> IncludeRelation
fn clone(&self) -> IncludeRelation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncludeRelation
impl Debug for IncludeRelation
Source§impl Default for IncludeRelation
impl Default for IncludeRelation
Source§fn default() -> IncludeRelation
fn default() -> IncludeRelation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IncludeRelation
impl RefUnwindSafe for IncludeRelation
impl Send for IncludeRelation
impl Sync for IncludeRelation
impl Unpin for IncludeRelation
impl UnsafeUnpin for IncludeRelation
impl UnwindSafe for IncludeRelation
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