pub struct CompleteInlineRelationWalker<'db> { /* private fields */ }
Expand description
Represents a relation that has fields and references defined in one of the relation fields. Includes 1:1 and 1:n relations that are defined from both sides.
Implementations§
source§impl<'db> CompleteInlineRelationWalker<'db>
impl<'db> CompleteInlineRelationWalker<'db>
sourcepub fn referencing_model(self) -> ModelWalker<'db>
pub fn referencing_model(self) -> ModelWalker<'db>
The model that defines the relation fields and actions.
sourcepub fn referenced_model(self) -> ModelWalker<'db>
pub fn referenced_model(self) -> ModelWalker<'db>
The implicit relation side.
pub fn referencing_field(self) -> RelationFieldWalker<'db>
pub fn referenced_field(self) -> RelationFieldWalker<'db>
sourcepub fn referenced_fields(
self
) -> impl ExactSizeIterator<Item = ScalarFieldWalker<'db>> + 'db
pub fn referenced_fields( self ) -> impl ExactSizeIterator<Item = ScalarFieldWalker<'db>> + 'db
The scalar fields defining the relation on the referenced model.
sourcepub fn referencing_fields(
self
) -> impl ExactSizeIterator<Item = ScalarFieldWalker<'db>> + 'db
pub fn referencing_fields( self ) -> impl ExactSizeIterator<Item = ScalarFieldWalker<'db>> + 'db
The scalar fields on the defining the relation on the referencing model.
sourcepub fn on_update(self) -> ReferentialAction
pub fn on_update(self) -> ReferentialAction
Gives the onUpdate referential action of the relation. If not defined explicitly, returns the default value.
pub fn on_update_span(self) -> Option<Span>
sourcepub fn referential_arity(self) -> FieldArity
pub fn referential_arity(self) -> FieldArity
Prisma allows setting the relation field as optional, even if one of the underlying scalar fields is required. For the purpose of referential actions, we count the relation field required if any of the underlying fields is required.
Trait Implementations§
source§impl<'db> Clone for CompleteInlineRelationWalker<'db>
impl<'db> Clone for CompleteInlineRelationWalker<'db>
source§fn clone(&self) -> CompleteInlineRelationWalker<'db>
fn clone(&self) -> CompleteInlineRelationWalker<'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 CompleteInlineRelationWalker<'db>
Auto Trait Implementations§
impl<'db> RefUnwindSafe for CompleteInlineRelationWalker<'db>
impl<'db> Send for CompleteInlineRelationWalker<'db>
impl<'db> Sync for CompleteInlineRelationWalker<'db>
impl<'db> Unpin for CompleteInlineRelationWalker<'db>
impl<'db> UnwindSafe for CompleteInlineRelationWalker<'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