Enum query_structure::filter::ConditionValue
source · pub enum ConditionValue {
Value(PrismaValue),
FieldRef(ScalarFieldRef),
}
Variants§
Value(PrismaValue)
FieldRef(ScalarFieldRef)
Implementations§
source§impl ConditionValue
impl ConditionValue
pub fn value(pv: PrismaValue) -> Self
pub fn reference(sf: ScalarFieldRef) -> Self
pub fn into_value(self) -> Option<PrismaValue>
pub fn into_reference(self) -> Option<ScalarFieldRef>
pub fn as_value(&self) -> Option<&PrismaValue>
pub fn as_field_ref(&self) -> Option<&ScalarFieldRef>
Trait Implementations§
source§impl Clone for ConditionValue
impl Clone for ConditionValue
source§fn clone(&self) -> ConditionValue
fn clone(&self) -> ConditionValue
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 ConditionValue
impl Debug for ConditionValue
source§impl From<&Zipper<ScalarFieldId>> for ConditionValue
impl From<&Zipper<ScalarFieldId>> for ConditionValue
source§fn from(sf: &ScalarFieldRef) -> Self
fn from(sf: &ScalarFieldRef) -> Self
Converts to this type from the input type.
source§impl From<PrismaValue> for ConditionValue
impl From<PrismaValue> for ConditionValue
source§fn from(pv: PrismaValue) -> Self
fn from(pv: PrismaValue) -> Self
Converts to this type from the input type.
source§impl From<Zipper<ScalarFieldId>> for ConditionValue
impl From<Zipper<ScalarFieldId>> for ConditionValue
source§fn from(sf: ScalarFieldRef) -> Self
fn from(sf: ScalarFieldRef) -> Self
Converts to this type from the input type.
source§impl Hash for ConditionValue
impl Hash for ConditionValue
source§impl PartialEq for ConditionValue
impl PartialEq for ConditionValue
source§fn eq(&self, other: &ConditionValue) -> bool
fn eq(&self, other: &ConditionValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConditionValue
impl StructuralEq for ConditionValue
impl StructuralPartialEq for ConditionValue
Auto Trait Implementations§
impl !RefUnwindSafe for ConditionValue
impl Send for ConditionValue
impl Sync for ConditionValue
impl Unpin for ConditionValue
impl !UnwindSafe for ConditionValue
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.