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 for TypeCondition
impl PartialEq for TypeCondition
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 StructuralPartialEq for TypeCondition
Auto Trait Implementations§
impl Freeze for TypeCondition
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