pub enum ConditionListValue {
List(PrismaListValue),
FieldRef(ScalarFieldRef),
}
Variants§
List(PrismaListValue)
FieldRef(ScalarFieldRef)
Implementations§
source§impl ConditionListValue
impl ConditionListValue
pub fn list<T>(vals: Vec<T>) -> Selfwhere T: Into<PrismaValue>,
pub fn reference(sf: ScalarFieldRef) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_field_ref(&self) -> Option<&ScalarFieldRef>
Trait Implementations§
source§impl Clone for ConditionListValue
impl Clone for ConditionListValue
source§fn clone(&self) -> ConditionListValue
fn clone(&self) -> ConditionListValue
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 ConditionListValue
impl Debug for ConditionListValue
source§impl From<Vec<PrismaValue>> for ConditionListValue
impl From<Vec<PrismaValue>> for ConditionListValue
source§fn from(pv: PrismaListValue) -> Self
fn from(pv: PrismaListValue) -> Self
Converts to this type from the input type.
source§impl From<Zipper<ScalarFieldId>> for ConditionListValue
impl From<Zipper<ScalarFieldId>> for ConditionListValue
source§fn from(sf: ScalarFieldRef) -> Self
fn from(sf: ScalarFieldRef) -> Self
Converts to this type from the input type.
source§impl Hash for ConditionListValue
impl Hash for ConditionListValue
source§impl PartialEq for ConditionListValue
impl PartialEq for ConditionListValue
source§fn eq(&self, other: &ConditionListValue) -> bool
fn eq(&self, other: &ConditionListValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConditionListValue
impl StructuralEq for ConditionListValue
impl StructuralPartialEq for ConditionListValue
Auto Trait Implementations§
impl !RefUnwindSafe for ConditionListValue
impl Send for ConditionListValue
impl Sync for ConditionListValue
impl Unpin for ConditionListValue
impl !UnwindSafe for ConditionListValue
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.