Struct apollo_encoder::TypeCondition
source · pub struct TypeCondition { /* private fields */ }
Expand description
The TypeCondition type represents where a fragment could be applied
TypeCondition: on NamedType
Detailed documentation can be found in GraphQL spec.
Implementations§
Trait Implementations§
source§impl Clone for TypeCondition
impl Clone for TypeCondition
source§fn clone(&self) -> TypeCondition
fn clone(&self) -> TypeCondition
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 TypeCondition
impl Debug for TypeCondition
source§impl Display for TypeCondition
impl Display for TypeCondition
source§impl PartialEq<TypeCondition> for TypeCondition
impl PartialEq<TypeCondition> for TypeCondition
source§fn eq(&self, other: &TypeCondition) -> bool
fn eq(&self, other: &TypeCondition) -> bool
source§impl TryFrom<TypeCondition> for TypeCondition
impl TryFrom<TypeCondition> for TypeCondition
source§fn try_from(node: TypeCondition) -> Result<Self, Self::Error>
fn try_from(node: TypeCondition) -> 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.