pub struct FragmentBuilder<'schema: 'fragreg, 'fragreg> { /* private fields */ }Implementations§
Source§impl<'schema: 'fragreg, 'fragreg> FragmentBuilder<'schema, 'fragreg>
impl<'schema: 'fragreg, 'fragreg> FragmentBuilder<'schema, 'fragreg>
Sourcepub fn add_directive(
self,
annot: DirectiveAnnotation,
) -> Result<Self, FragmentBuildError>
pub fn add_directive( self, annot: DirectiveAnnotation, ) -> Result<Self, FragmentBuildError>
Add a DirectiveAnnotation after any previously added
DirectiveAnnotations.
pub fn add_selection( self, selection: Selection<'schema>, ) -> Result<Self, FragmentBuildError>
pub fn build(self) -> Result<Fragment<'schema>, FragmentBuildError>
pub fn from_ast( schema: &'schema Schema, fragment_registry: &'fragreg FragmentRegistry<'schema>, ast: &FragmentDefinition, file_path: Option<&Path>, ) -> Result<Self, FragmentBuildError>
pub fn set_name( self, name: impl Into<String>, ) -> Result<Self, FragmentBuildError>
pub fn set_type_condition( self, graphql_type: &'schema GraphQLType, ) -> Result<Self, FragmentBuildError>
Trait Implementations§
Source§impl<'schema: 'fragreg, 'fragreg> Clone for FragmentBuilder<'schema, 'fragreg>
impl<'schema: 'fragreg, 'fragreg> Clone for FragmentBuilder<'schema, 'fragreg>
Source§fn clone(&self) -> FragmentBuilder<'schema, 'fragreg>
fn clone(&self) -> FragmentBuilder<'schema, 'fragreg>
Returns a duplicate 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<'schema: 'fragreg, 'fragreg> Debug for FragmentBuilder<'schema, 'fragreg>
impl<'schema: 'fragreg, 'fragreg> Debug for FragmentBuilder<'schema, 'fragreg>
Source§impl<'schema: 'fragreg, 'fragreg> PartialEq for FragmentBuilder<'schema, 'fragreg>
impl<'schema: 'fragreg, 'fragreg> PartialEq for FragmentBuilder<'schema, 'fragreg>
Source§fn eq(&self, other: &FragmentBuilder<'schema, 'fragreg>) -> bool
fn eq(&self, other: &FragmentBuilder<'schema, 'fragreg>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'schema: 'fragreg, 'fragreg> StructuralPartialEq for FragmentBuilder<'schema, 'fragreg>
Auto Trait Implementations§
impl<'schema, 'fragreg> Freeze for FragmentBuilder<'schema, 'fragreg>
impl<'schema, 'fragreg> RefUnwindSafe for FragmentBuilder<'schema, 'fragreg>
impl<'schema, 'fragreg> Send for FragmentBuilder<'schema, 'fragreg>
impl<'schema, 'fragreg> Sync for FragmentBuilder<'schema, 'fragreg>
impl<'schema, 'fragreg> Unpin for FragmentBuilder<'schema, 'fragreg>
impl<'schema, 'fragreg> UnwindSafe for FragmentBuilder<'schema, 'fragreg>
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