pub struct TwoWayEmbeddedManyToManyRelationWalker<'db>(/* private fields */);
Expand description
Describes an explicit m:n relation between two models. Both sides define
fields
which must be a single array scalar field, and references
that
should point to a single scalar field on the referenced model.
Implementations§
source§impl<'db> TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> TwoWayEmbeddedManyToManyRelationWalker<'db>
sourcepub fn model_a(self) -> Walker<'db, ModelId>
pub fn model_a(self) -> Walker<'db, ModelId>
The model which comes first in the alphabetical order.
sourcepub fn model_b(self) -> Walker<'db, ModelId>
pub fn model_b(self) -> Walker<'db, ModelId>
The model which comes after model a in the alphabetical order.
sourcepub fn field_a(self) -> Walker<'db, RelationFieldId>
pub fn field_a(self) -> Walker<'db, RelationFieldId>
The field that defines the relation in model a.
sourcepub fn field_b(self) -> Walker<'db, RelationFieldId>
pub fn field_b(self) -> Walker<'db, RelationFieldId>
The field that defines the relation in model b.
Trait Implementations§
source§impl<'db> Clone for TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> Clone for TwoWayEmbeddedManyToManyRelationWalker<'db>
source§fn clone(&self) -> TwoWayEmbeddedManyToManyRelationWalker<'db>
fn clone(&self) -> TwoWayEmbeddedManyToManyRelationWalker<'db>
Returns a copy 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 moreimpl<'db> Copy for TwoWayEmbeddedManyToManyRelationWalker<'db>
Auto Trait Implementations§
impl<'db> RefUnwindSafe for TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> Send for TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> Sync for TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> Unpin for TwoWayEmbeddedManyToManyRelationWalker<'db>
impl<'db> UnwindSafe for TwoWayEmbeddedManyToManyRelationWalker<'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