Enum query_structure::prelude::VirtualSelection
source · pub enum VirtualSelection {
RelationCount(RelationFieldRef, Option<Filter>),
}
Variants§
RelationCount(RelationFieldRef, Option<Filter>)
Implementations§
source§impl VirtualSelection
impl VirtualSelection
pub fn db_alias(&self) -> String
pub fn serialized_name(&self) -> (&'static str, &str)
pub fn model(&self) -> Model
pub fn coerce_value(&self, value: PrismaValue) -> Result<PrismaValue>
pub fn field(&self) -> Field
pub fn type_identifier_with_arity(&self) -> (TypeIdentifier, FieldArity)
pub fn relation_field(&self) -> &RelationField
Trait Implementations§
source§impl Clone for VirtualSelection
impl Clone for VirtualSelection
source§fn clone(&self) -> VirtualSelection
fn clone(&self) -> VirtualSelection
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 VirtualSelection
impl Debug for VirtualSelection
source§impl Display for VirtualSelection
impl Display for VirtualSelection
source§impl Hash for VirtualSelection
impl Hash for VirtualSelection
source§impl PartialEq for VirtualSelection
impl PartialEq for VirtualSelection
source§fn eq(&self, other: &VirtualSelection) -> bool
fn eq(&self, other: &VirtualSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VirtualSelection
impl StructuralEq for VirtualSelection
impl StructuralPartialEq for VirtualSelection
Auto Trait Implementations§
impl !RefUnwindSafe for VirtualSelection
impl Send for VirtualSelection
impl Sync for VirtualSelection
impl Unpin for VirtualSelection
impl !UnwindSafe for VirtualSelection
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.