pub enum CompositeCondition {
Every(Filter),
Some(Filter),
None(Filter),
Empty(bool),
Equals(PrismaValue),
Is(Filter),
IsNot(Filter),
IsSet(bool),
}
Variants§
Every(Filter)
Every composite in the list needs to fulfill a condition.
Some(Filter)
One or more composite in a list needs to fulfill a condition.
None(Filter)
No composite in a list must fulfill a condition.
Empty(bool)
Checks whether or not the composite list is empty.
Equals(PrismaValue)
Entire composite equals the given value. Can be for lists or single composites.
Is(Filter)
To-one composite only - the composite must fulfill the filter.
IsNot(Filter)
To-one composite only - the composite must not fulfill the filter.
IsSet(bool)
Checks whether or not the composite field exists (is undefined
or not)
Trait Implementations§
source§impl Clone for CompositeCondition
impl Clone for CompositeCondition
source§fn clone(&self) -> CompositeCondition
fn clone(&self) -> CompositeCondition
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 moresource§impl Debug for CompositeCondition
impl Debug for CompositeCondition
source§impl Hash for CompositeCondition
impl Hash for CompositeCondition
source§impl PartialEq for CompositeCondition
impl PartialEq for CompositeCondition
source§fn eq(&self, other: &CompositeCondition) -> bool
fn eq(&self, other: &CompositeCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompositeCondition
impl StructuralEq for CompositeCondition
impl StructuralPartialEq for CompositeCondition
Auto Trait Implementations§
impl !RefUnwindSafe for CompositeCondition
impl Send for CompositeCondition
impl Sync for CompositeCondition
impl Unpin for CompositeCondition
impl !UnwindSafe for CompositeCondition
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
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.