Enum query_structure::filter::RelationCondition
source · pub enum RelationCondition {
EveryRelatedRecord,
AtLeastOneRelatedRecord,
NoRelatedRecord,
ToOneRelatedRecord,
}
Variants§
EveryRelatedRecord
Every single related record needs to fulfill a condition.
every
query condition.
AtLeastOneRelatedRecord
At least one related record needs to fulfill a condition.
some
query condition.
NoRelatedRecord
No related record must to fulfill a condition.
none
query condition.
ToOneRelatedRecord
To-one relation only - the related record must fulfill a condition.
Implementations§
Trait Implementations§
source§impl Clone for RelationCondition
impl Clone for RelationCondition
source§fn clone(&self) -> RelationCondition
fn clone(&self) -> RelationCondition
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 RelationCondition
impl Debug for RelationCondition
source§impl Hash for RelationCondition
impl Hash for RelationCondition
source§impl Ord for RelationCondition
impl Ord for RelationCondition
source§fn cmp(&self, other: &RelationCondition) -> Ordering
fn cmp(&self, other: &RelationCondition) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RelationCondition
impl PartialEq for RelationCondition
source§fn eq(&self, other: &RelationCondition) -> bool
fn eq(&self, other: &RelationCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RelationCondition
impl PartialOrd for RelationCondition
source§fn partial_cmp(&self, other: &RelationCondition) -> Option<Ordering>
fn partial_cmp(&self, other: &RelationCondition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for RelationCondition
impl Eq for RelationCondition
impl StructuralEq for RelationCondition
impl StructuralPartialEq for RelationCondition
Auto Trait Implementations§
impl RefUnwindSafe for RelationCondition
impl Send for RelationCondition
impl Sync for RelationCondition
impl Unpin for RelationCondition
impl UnwindSafe for RelationCondition
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.