pub struct OperationDefinition<'a>(/* private fields */);
Implementations§
Source§impl<'a> OperationDefinition<'a>
impl<'a> OperationDefinition<'a>
pub fn operation_type(&self) -> OperationType
pub fn operation_type_span(&self) -> Option<Span>
pub fn name(&self) -> Option<&'a str>
pub fn name_span(&self) -> Option<Span>
pub fn variable_definitions(&self) -> Iter<'a, VariableDefinition<'a>> ⓘ
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn selection_set(&self) -> Iter<'a, Selection<'a>> ⓘ
Source§impl OperationDefinition<'_>
impl OperationDefinition<'_>
pub fn id(&self) -> OperationDefinitionId
Trait Implementations§
Source§impl<'a> Clone for OperationDefinition<'a>
impl<'a> Clone for OperationDefinition<'a>
Source§fn clone(&self) -> OperationDefinition<'a>
fn clone(&self) -> OperationDefinition<'a>
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 OperationDefinition<'_>
impl Debug for OperationDefinition<'_>
Source§impl IdReader for OperationDefinition<'_>
impl IdReader for OperationDefinition<'_>
type Id = OperationDefinitionId
type Reader<'a> = OperationDefinition<'a>
fn new(id: Self::Id, document: &ExecutableDocument) -> Self::Reader<'_>
impl<'a> Copy for OperationDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for OperationDefinition<'a>
impl<'a> RefUnwindSafe for OperationDefinition<'a>
impl<'a> Send for OperationDefinition<'a>
impl<'a> Sync for OperationDefinition<'a>
impl<'a> Unpin for OperationDefinition<'a>
impl<'a> UnwindSafe for OperationDefinition<'a>
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