Enum apollo_compiler::database::hir::OperationType   
source · pub enum OperationType {
    Query,
    Mutation,
    Subscription,
}Variants§
Implementations§
source§impl OperationType
 
impl OperationType
sourcepub fn is_mutation(&self) -> bool
 
pub fn is_mutation(&self) -> bool
Returns true if the operation type is Mutation.
sourcepub fn is_subscription(&self) -> bool
 
pub fn is_subscription(&self) -> bool
Returns true if the operation type is Subscription.
Trait Implementations§
source§impl Clone for OperationType
 
impl Clone for OperationType
source§fn clone(&self) -> OperationType
 
fn clone(&self) -> OperationType
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 OperationType
 
impl Debug for OperationType
source§impl Display for OperationType
 
impl Display for OperationType
source§impl<'a> From<&'a str> for OperationType
 
impl<'a> From<&'a str> for OperationType
source§impl From<OperationType> for &'static str
 
impl From<OperationType> for &'static str
source§fn from(ty: OperationType) -> &'static str
 
fn from(ty: OperationType) -> &'static str
Converts to this type from the input type.
source§impl From<OperationType> for DirectiveLocation
 
impl From<OperationType> for DirectiveLocation
source§fn from(op_type: OperationType) -> Self
 
fn from(op_type: OperationType) -> Self
Converts to this type from the input type.
source§impl Hash for OperationType
 
impl Hash for OperationType
source§impl PartialEq<OperationType> for OperationType
 
impl PartialEq<OperationType> for OperationType
source§fn eq(&self, other: &OperationType) -> bool
 
fn eq(&self, other: &OperationType) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for OperationType
impl Eq for OperationType
impl StructuralEq for OperationType
impl StructuralPartialEq for OperationType
Auto Trait Implementations§
impl RefUnwindSafe for OperationType
impl Send for OperationType
impl Sync for OperationType
impl Unpin for OperationType
impl UnwindSafe for OperationType
Blanket Implementations§
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.