Struct query_structure::prelude::RelationSelection
source · pub struct RelationSelection {
pub field: RelationField,
pub args: QueryArguments,
pub result_fields: Vec<String>,
pub selections: Vec<SelectedField>,
}
Fields§
§field: RelationField
§args: QueryArguments
§result_fields: Vec<String>
Field names that will eventually be serialized
selections: Vec<SelectedField>
Implementations§
source§impl RelationSelection
impl RelationSelection
pub fn scalars(&self) -> impl Iterator<Item = &ScalarField>
pub fn relations(&self) -> impl Iterator<Item = &RelationSelection>
pub fn virtuals(&self) -> impl Iterator<Item = &VirtualSelection>
Trait Implementations§
source§impl Clone for RelationSelection
impl Clone for RelationSelection
source§fn clone(&self) -> RelationSelection
fn clone(&self) -> RelationSelection
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 RelationSelection
impl Debug for RelationSelection
source§impl Hash for RelationSelection
impl Hash for RelationSelection
source§impl PartialEq for RelationSelection
impl PartialEq for RelationSelection
source§fn eq(&self, other: &RelationSelection) -> bool
fn eq(&self, other: &RelationSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RelationSelection
impl StructuralEq for RelationSelection
impl StructuralPartialEq for RelationSelection
Auto Trait Implementations§
impl !RefUnwindSafe for RelationSelection
impl Send for RelationSelection
impl Sync for RelationSelection
impl Unpin for RelationSelection
impl !UnwindSafe for RelationSelection
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.