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
This method tests for 
self and other values to be equal, and is used
by ==.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.
impl Eq for TypeCondition
impl StructuralEq for TypeCondition
impl StructuralPartialEq for TypeCondition
Auto Trait Implementations§
impl RefUnwindSafe for TypeCondition
impl Send for TypeCondition
impl Sync for TypeCondition
impl Unpin for TypeCondition
impl UnwindSafe for TypeCondition
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
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.