Enum apollo_compiler::executable::Selection
source · pub enum Selection {
Field(Node<Field>),
FragmentSpread(Node<FragmentSpread>),
InlineFragment(Node<InlineFragment>),
}
Variants§
Implementations§
source§impl Selection
impl Selection
pub fn directives(&self) -> &Directives
source§impl Selection
impl Selection
pub fn as_field(&self) -> Option<&Node<Field>>
pub fn as_inline_fragment(&self) -> Option<&Node<InlineFragment>>
pub fn as_fragment_spread(&self) -> Option<&Node<FragmentSpread>>
Trait Implementations§
source§impl From<FragmentSpread> for Selection
impl From<FragmentSpread> for Selection
source§fn from(value: FragmentSpread) -> Self
fn from(value: FragmentSpread) -> Self
Converts to this type from the input type.
source§impl From<InlineFragment> for Selection
impl From<InlineFragment> for Selection
source§fn from(value: InlineFragment) -> Self
fn from(value: InlineFragment) -> Self
Converts to this type from the input type.
source§impl From<Node<FragmentSpread>> for Selection
impl From<Node<FragmentSpread>> for Selection
source§fn from(node: Node<FragmentSpread>) -> Self
fn from(node: Node<FragmentSpread>) -> Self
Converts to this type from the input type.
source§impl From<Node<InlineFragment>> for Selection
impl From<Node<InlineFragment>> for Selection
source§fn from(node: Node<InlineFragment>) -> Self
fn from(node: Node<InlineFragment>) -> Self
Converts to this type from the input type.
source§impl PartialEq for Selection
impl PartialEq for Selection
impl Eq for Selection
impl StructuralEq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 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.