pub enum PrefetchKind<'a> {
ReverseFk(&'a str),
ManyToMany,
}Expand description
How prefetch_related finds the R rows of each M.
Variants§
ReverseFk(&'a str)
A column on R’s table pointing back to M’s primary key.
ManyToMany
Through the M2M pivot table (see crate::related::m2m_pivot).
Trait Implementations§
Source§impl<'a> Clone for PrefetchKind<'a>
impl<'a> Clone for PrefetchKind<'a>
impl<'a> Copy for PrefetchKind<'a>
Source§impl<'a> Debug for PrefetchKind<'a>
impl<'a> Debug for PrefetchKind<'a>
impl<'a> Eq for PrefetchKind<'a>
Source§impl<'a> PartialEq for PrefetchKind<'a>
impl<'a> PartialEq for PrefetchKind<'a>
impl<'a> StructuralPartialEq for PrefetchKind<'a>
Auto Trait Implementations§
impl<'a> Forget for PrefetchKind<'a>
impl<'a> Freeze for PrefetchKind<'a>
impl<'a> RefUnwindSafe for PrefetchKind<'a>
impl<'a> Send for PrefetchKind<'a>
impl<'a> Sync for PrefetchKind<'a>
impl<'a> Unpin for PrefetchKind<'a>
impl<'a> UnsafeUnpin for PrefetchKind<'a>
impl<'a> UnwindSafe for PrefetchKind<'a>
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