pub enum RelationConstraint {
OwnersOf(Vec<String>),
NotOwnersOf(Vec<String>),
}Expand description
Which reverse-join read a constraint on a Relation-typed field asks for.
reduceInRelation (DatabaseController.js:1050-1143). Note the fourth case: any other
constraint on a relation field yields no results at all, because upstream falls into its
else branch with an empty related-id list. That is reproduced rather than turned into an
error, since it narrows rather than broadens and a client can already observe it.
Variants§
OwnersOf(Vec<String>)
The owning objects related to any of these ids.
NotOwnersOf(Vec<String>)
The complement: objectId $nin.
Trait Implementations§
Source§impl Clone for RelationConstraint
impl Clone for RelationConstraint
Source§fn clone(&self) -> RelationConstraint
fn clone(&self) -> RelationConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RelationConstraint
impl RefUnwindSafe for RelationConstraint
impl Send for RelationConstraint
impl Sync for RelationConstraint
impl Unpin for RelationConstraint
impl UnsafeUnpin for RelationConstraint
impl UnwindSafe for RelationConstraint
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