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
sourceimpl TypeCondition
impl TypeCondition
Trait Implementations
sourceimpl Clone for TypeCondition
impl Clone for TypeCondition
sourcefn clone(&self) -> TypeCondition
fn clone(&self) -> TypeCondition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeCondition
impl Debug for TypeCondition
sourceimpl Display for TypeCondition
impl Display for TypeCondition
sourceimpl PartialEq<TypeCondition> for TypeCondition
impl PartialEq<TypeCondition> for TypeCondition
sourcefn eq(&self, other: &TypeCondition) -> bool
fn eq(&self, other: &TypeCondition) -> bool
sourceimpl TryFrom<TypeCondition> for TypeCondition
impl TryFrom<TypeCondition> for TypeCondition
sourcefn 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.
type Error = FromError
type Error = FromError
The type returned in the event of a conversion error.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more