pub struct FieldSelection { /* private fields */ }Expand description
Parsed GraphQL field selection with optional alias, arguments, and nested sub-selections.
Implementations§
Source§impl FieldSelection
Accessors for FieldSelection.
impl FieldSelection
Accessors for FieldSelection.
Sourcepub fn response_key(&self) -> &str
pub fn response_key(&self) -> &str
Returns the output key for this field (its alias if specified, otherwise its field name).
§Returns
&str- Response JSON key name.
Source§impl FieldSelection
impl FieldSelection
pub fn get_alias(&self) -> String
pub fn try_get_alias(&self) -> &Option<String>
pub fn get_name(&self) -> &String
pub fn get_arguments(&self) -> &BTreeMap<String, Value>
pub fn get_sub_fields(&self) -> &Vec<FieldSelection>
Trait Implementations§
Source§impl Clone for FieldSelection
impl Clone for FieldSelection
Source§impl Debug for FieldSelection
impl Debug for FieldSelection
impl Eq for FieldSelection
Source§impl PartialEq for FieldSelection
impl PartialEq for FieldSelection
impl StructuralPartialEq for FieldSelection
Auto Trait Implementations§
impl Forget for FieldSelection
impl Freeze for FieldSelectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<FieldSelection>: Freeze,
impl Move for FieldSelection
impl RefUnwindSafe for FieldSelection
impl Send for FieldSelection
impl Sync for FieldSelection
impl Unpin for FieldSelection
impl UnsafeUnpin for FieldSelectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<FieldSelection>: UnsafeUnpin,
impl UnwindSafe for FieldSelection
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.