pub struct ManyToManyField<M, R>(/* private fields */);Expand description
A ManyToMany<R> field on M: #[derive(Model)] generates Article::TAGS for a
tags: ManyToMany<Tag> field. Not a column, so it only works with prefetch_related.
Implementations§
Source§impl<M, R> ManyToManyField<M, R>
impl<M, R> ManyToManyField<M, R>
Trait Implementations§
Source§impl<M, R> Default for ManyToManyField<M, R>
impl<M, R> Default for ManyToManyField<M, R>
Source§impl<M, R> PrefetchRef<M, R> for ManyToManyField<M, R>
impl<M, R> PrefetchRef<M, R> for ManyToManyField<M, R>
fn prefetch_kind(&self) -> PrefetchKind<'_>
Auto Trait Implementations§
impl<M, R> Forget for ManyToManyField<M, R>
impl<M, R> Freeze for ManyToManyField<M, R>
impl<M, R> RefUnwindSafe for ManyToManyField<M, R>
impl<M, R> Send for ManyToManyField<M, R>
impl<M, R> Sync for ManyToManyField<M, R>
impl<M, R> Unpin for ManyToManyField<M, R>
impl<M, R> UnsafeUnpin for ManyToManyField<M, R>
impl<M, R> UnwindSafe for ManyToManyField<M, R>
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