pub enum RefinedRelationWalker<'db> {
Inline(InlineRelationWalker<'db>),
ImplicitManyToMany(ImplicitManyToManyRelationWalker<'db>),
TwoWayEmbeddedManyToMany(TwoWayEmbeddedManyToManyRelationWalker<'db>),
}
Expand description
Splits the relation to different types.
Variants§
Inline(InlineRelationWalker<'db>)
1:1 and 1:n relations, where one side defines the relation arguments.
ImplicitManyToMany(ImplicitManyToManyRelationWalker<'db>)
Implicit m:n relation. The arguments are inferred by Prisma.
TwoWayEmbeddedManyToMany(TwoWayEmbeddedManyToManyRelationWalker<'db>)
Embedded 2-way m:n relation.
Implementations§
source§impl<'db> RefinedRelationWalker<'db>
impl<'db> RefinedRelationWalker<'db>
sourcepub fn as_inline(&self) -> Option<InlineRelationWalker<'db>>
pub fn as_inline(&self) -> Option<InlineRelationWalker<'db>>
Try interpreting this relation as an inline (1:n or 1:1 — without join table) relation.
sourcepub fn as_many_to_many(&self) -> Option<ImplicitManyToManyRelationWalker<'db>>
pub fn as_many_to_many(&self) -> Option<ImplicitManyToManyRelationWalker<'db>>
Try interpreting this relation as an implicit many-to-many relation.
Auto Trait Implementations§
impl<'db> RefUnwindSafe for RefinedRelationWalker<'db>
impl<'db> Send for RefinedRelationWalker<'db>
impl<'db> Sync for RefinedRelationWalker<'db>
impl<'db> Unpin for RefinedRelationWalker<'db>
impl<'db> UnwindSafe for RefinedRelationWalker<'db>
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