Enum apollo_encoder::OperationType
source · pub enum OperationType {
Query,
Mutation,
Subscription,
}
Expand description
The OperationType type represents the kind of operation
OperationType: query | mutation | subscription
Detailed documentation can be found in GraphQL spec.
Variants§
Query
Represents a query operation
Mutation
Represents a mutation operation
Subscription
Represents a subscription operation
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 TryFrom<OperationType> for OperationType
impl TryFrom<OperationType> for OperationType
source§fn try_from(node: OperationType) -> Result<Self, Self::Error>
fn try_from(node: OperationType) -> Result<Self, Self::Error>
Create an apollo-encoder node from an apollo-parser one.
Errors
This returns an error if the apollo-parser tree is not valid. The error doesn’t have much context due to TryFrom API constraints: validate the parse tree before using TryFrom if granular errors are important to you.
source§impl TryInto<OperationType> for OperationType
impl TryInto<OperationType> 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<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